Forum Moderators: open

Message Too Old, No Replies

Popup Window

         

artie2004

6:21 pm on Jul 28, 2007 (gmt 0)

10+ Year Member



Hello. Can someone please show me how to open a popup window only when a user hits the browser's back button? I know that you can do it with

<body onUnload="window.open('http://site.com', 'MySite', 'toolbar=0, location=0, directories=0, menuBar=0, scrollbars=1, resizable=1, width=1000, height=1000, left=50, top=50');">

but this opens the popup window whenever a user leaves this page. I do not want this. I only want to open the popup window when a user uses the browsers back button from this page. Thanks.

lavazza

11:57 pm on Jul 28, 2007 (gmt 0)

10+ Year Member



Don't mess with User Agents

If the user clicks the back button on their browser, it's because they want their browser to display the previous page... not to display your popup

Any site that tries tricks like that with my browser gets added to my list of forbidden sites and then closed