Suppressing JavaScript Errors -

They have: 16 posts

Joined: Dec 1998

Is there any way to suppress JavaScript errors?

John

They have: 62 posts

Joined: Dec 1998

John,

Simply add the follwing lines to the top of you script block:

function stopErrors(){return true;}
window.onerror = stopErrors;

This will effectively suppress any scripting errors. Be sure to comment this out when testing and debugging.

------------------
Jeffrey Ellison
[email protected]
http://www.eons.com - Free Online Tools for Webmasters

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.