homepage Welcome to WebmasterWorld Guest from 54.205.119.163
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld
Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
Unload is not working in Netscape
ksvijay




msg:598476
 8:59 am on Jun 23, 2005 (gmt 0)

<body onUnload=window.open('http://www.example.com'); self.blur();>

The above code is working in IE, but Not in Netscape, how can i use the unload option for both browser

[edited by: BlobFisk at 8:56 am (utc) on June 24, 2005]
[edit reason] Changed example URL to example.com [/edit]

 

Purple Martin




msg:598477
 6:28 am on Jun 24, 2005 (gmt 0)

The onUnload event is notoriously unreliable. The document can get unloaded before the event gets properly triggered. For this reason it is best to avoid using it.

I should also say that what you are trying to do is very unfriendly. If people wanted to go to http://www.example.com they could go there themselves, so don't try to force them to go there when they unload your page. Stuff like that gives all us webmasters a bad name.

[edited by: BlobFisk at 8:56 am (utc) on June 24, 2005]
[edit reason] Changed example URL to example.com [/edit]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved