Skip navigation

Do you need a meaningful error report?

//
onerror = handleErr;
var errorText = "";
function handleErr(msg, url, l) {
   errorText = "There was an error on this page.\n\n";
   errorText += "Error: " + msg + "\n";
   errorText += "URL: " + url + "\n";
   errorText += "Line: " + l + "\n\n";
   errorText += "Click OK to continue.\n\n";
   alert(errorText);
   return true;
}
//

While testing in IE, it will give you more hints.

update (on 19th December 2013): Now a days IEs shipping with powerful debuggers.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: