Closed Thread Icon

Preserved Topic: what is window.onerror=null? Pages that link to <a href="https://ozoneasylum.com/backlink?for=17777" title="Pages that link to Preserved Topic: what is window.onerror=null?" rel="nofollow" >Preserved Topic: what is window.onerror=null?\

 
Author Thread
ashman
Obsessive-Compulsive (I) Inmate

From: Sydney,NSW,Australia
Insane since: Jun 2000

posted posted 07-03-2000 03:47

Anybody know what "window.onerror=null" line is for. I have seen this line in sone of Ozones pages.

Is this for IE4, so it doesn't pop up with the error popup?

Bugimus
Maniac (V) Mad Scientist

From: New California
Insane since: Mar 2000

posted posted 07-04-2000 18:24

Yes, you've got it right. It defines what to do when the "onerror" event occurs. So for any errors that happen in "window", do "null" or absolutely nothing. This line should only be used once you are absolutely sure you are done debugging your code!

Pugzly
Paranoid (IV) Inmate

From: 127.0.0.1
Insane since: Apr 2000

posted posted 07-13-2000 02:54

ashman -

This comes in handy when you are caching a bunch of mouseover images. This will kill the error messages if someone tries to mouseover before the images are done caching.

FYI.

Pat Richard
Web weenie
http://www.gurusnetwork.com
ICQ 23113317

« BackwardsOnwards »

Show Forum Drop Down Menu