Forum Moderators: open
However the Window object also has an onerror property (because its a property, no caps.) You can use this to suppress all error messages and have the code try to resume.
It cannot be attached to HTML tags -- because there is no <window> tag -- it is applied to all js errors in the window. That is, you can't zero in on errors that occur in just one js function if your page runs several.
Place one line of code at the very top of your JavaScript to catch all js errors in that window--
self.onerror = suppress() {return true}
window.onerror is JavaScript 1.1, so this doesn't apply to very old browsers (up through IE4 and NN2, I believe)