View Full Version : Resolved who could I stop Error message at IE browser

10-17-2008, 02:42 PM
who could I stop Error message at IE browser ?

those message break done page loading and they are not major error.

how could I stop them so the visitor don't have any error alert if he use debugging feature in IE browser ?

I beliefe there is an Javascript command block that error message.

10-17-2008, 03:28 PM
Easy, fix the errors....:eek:

The average user will not have the debugging feature on so it is not a big deal unless you are trying to hide bugs from you testers or boss. :)

Look into window.onerror if you really want to put a band-aid on something that needs stitches.


rnd me
10-17-2008, 04:04 PM
window.onerror =function(){ return false; }

10-17-2008, 05:47 PM
don't you need to return true from an error to keep it from reaching the window?

errorlog= errorlog || [];
return true;

Philip M
10-17-2008, 08:13 PM

The value returned by onerror determines whether the browser displays a standard error message. If you return false, the browser displays the standard error message in the JavaScript console. If you return true, the browser does not display the standard error message.

10-18-2008, 04:15 AM
Thanks guys for the helpful reply