...

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



Dooq
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.

A1ien51
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.

Eric

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

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

window.onerrror=function(e){
errorlog= errorlog || [];
errorlog.push(e.message);
return true;
}

Philip M
10-17-2008, 08:13 PM
http://www.w3schools.com/js/js_onerror.asp

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.

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum