| 
		
			
			
				
			
			
				 
			
			
				
			
		 | 
		
			
			
				 
			
				
			
		 | 
	||||
| 
				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.  | 
		
		 
		![]()  | 
	
		
			
  | 	
	
	
		
		|||||||
| Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. | 
| 
		 | 
	Thread Tools | 
| 
			
			 | 
		#1 | 
| 
			
			
			
			 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  | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#2 | 
| 
			
			
			
			 Confirmed User 
			
		
			
			
			Join Date: Feb 2002 
				
				
				
					Posts: 1,346
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 onbeforeunload 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#3 | 
| 
			
			
			
			 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()"> 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#4 | |
| 
			
			
			
			 God is Brazilian 
			
		
			
			
			Join Date: Feb 2001 
				Location: Brazil 
				
				
					Posts: 10,601
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#5 | 
| 
			
			
			
			 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();" 
		
	
		
		
		
		
			
		
		
		
		
	
	 | 
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 | 
| 
			
			 | 
		#6 | |
| 
			
			
			
			 God is Brazilian 
			
		
			
			
			Join Date: Feb 2001 
				Location: Brazil 
				
				
					Posts: 10,601
				 
				
				
				
				 | 
	
	
	
	
		
		
		
		 Quote: 
	
  | 
|
| 
		 | 
	
	
	
		
                 
		
		
		
		
		
		
		
			
			
		
	 |