Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 01-02-2005, 05:35 PM   #1
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
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
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-02-2005, 05:37 PM   #2
sucker
Confirmed User
 
Join Date: Feb 2002
Posts: 1,346
onbeforeunload
__________________
[email protected]


sucker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-02-2005, 05:40 PM   #3
sucker
Confirmed User
 
Join Date: Feb 2002
Posts: 1,346
actually i think you can just add it to an image, like < img src="image.gif" onunload="Function()">
__________________
[email protected]


sucker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-02-2005, 05:44 PM   #4
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
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.
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-02-2005, 05:45 PM   #5
sucker
Confirmed User
 
Join Date: Feb 2002
Posts: 1,346
actually you cant do that (img tag thing ) but you could add this to the body tag onabort="function();"
__________________
[email protected]


sucker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 01-02-2005, 05:50 PM   #6
Jer
God is Brazilian
 
Join Date: Feb 2001
Location: Brazil
Posts: 10,601
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.
Jer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.