PDA

View Full Version : Suppress JS Error



SEP800
12-14-2004, 06:55 PM
Would someone be kind enough to show me how I can suppress this error message:

Error:'null' is null or not an object
Code: 0

I would really really really appreciate it.

Thanks!

cr3ative
12-15-2004, 10:57 AM
This doesn't cure it, but it makes the browser silently accept that there's an error.


<SCRIPT language="JavaScript">
<!--
function silentErrorHandler() {return true}
window.onerror=silentErrorHandler()
//-->
</SCRIPT>

Merry Christmas
cr3ative