GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   what's the HTML code to load a specific URL on closing a window (https://gfy.com/showthread.php?t=452677)

H.I.G 04-06-2005 04:41 AM

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..

Roald 04-06-2005 04:46 AM

so you do mean an exit popup?

rowan 04-06-2005 08:08 AM

Yeah, how can it not be a popup when the window has closed?

PrivateIvy 04-06-2005 08:11 AM

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

H.I.G 04-06-2005 09:10 AM

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