View Full Version : Opening a new window when closing another

10-12-2008, 04:32 AM
So, I'm trying to create a page that opens a new window when the user leaves the current page they are on. I was thinking I could use something like window.open. But, I'm not sure what code to write that, when the page is closed, it should open the new window.