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)
-   -   Is there any other way to have a JS function on exit other than using ... (https://gfy.com/showthread.php?t=411637)

Jer 01-02-2005 05:35 PM

Is there any other way to have a JS function on exit other than using ...
 
Is there any other way to have a JS function on exit other than using "onunload" in the body or frameset?

I want to send all exits from a site with frames to a JS function. I tried putting a hidden frame with just the code and onunload but it doesn't work sometimes when the main frame page is still loading.

Thank you

Jer

sucker 01-02-2005 05:37 PM

onbeforeunload

sucker 01-02-2005 05:40 PM

actually i think you can just add it to an image, like < img src="image.gif" onunload="Function()">

Jer 01-02-2005 05:44 PM

Quote:

Originally Posted by sucker
onbeforeunload

Sweet. When I read your post I thought you were joking, but I did a google search and confirmed it. I just put it online in one of my domains. Thank you very much.

sucker 01-02-2005 05:45 PM

actually you cant do that (img tag thing ) but you could add this to the body tag onabort="function();"

Jer 01-02-2005 05:50 PM

Quote:

Originally Posted by sucker
actually you cant do that (img tag thing ) but you could add this to the body tag onabort="function();"

I didn't know about that command too. Thank you. :)


All times are GMT -7. The time now is 12:38 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123