![]() |
what's the HTML code to load a specific URL on closing a window
Hi Guys,
What's the HTML code to load a specific URL on closing a browser window. I am not talking about a pop-up but how do you load a different URL when a page is closed. What's the html code you need to insert to a page to get this right?? Ex: If I close this GFY window how do I get a new windows to open up with www.google.com thanks.. |
so you do mean an exit popup?
|
Yeah, how can it not be a popup when the window has closed?
|
You put this in your header:
<script language="JavaScript"> <!-- var exit=true; function xit() { if (exit) open("http://www.blah blah blah .com","copy"); } //--> </script> but you need to add onclick="exit=false" to any links on the page that keep your visitor on your site and you don't want the window opened :thumbsup Ivy |
thanks Ivy :thumbsup
|
All times are GMT -7. The time now is 07:43 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123