Welcome to WebmasterWorld Guest from 54.234.63.187

Forum Moderators: incrediBILL

Message Too Old, No Replies

Unload is not working in Netscape

     

ksvijay

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

10+ Year Member



<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

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

WebmasterWorld Senior Member 10+ Year Member



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]

 

Featured Threads

Hot Threads This Week

Hot Threads This Month