URIError Creates an instance representing an error that occurs when encodeURI() or decodeURI() are passed invalid parameters. I am trying to debug it using alert but it is not working .... –Eric Olson Mar 6 '13 at 21:02 1 Once again, can you clarify the environment you're Description Runtime errors result in new Error objects being created and thrown. Thanks for your registration, follow us on our social networks to keep up-to-date Skip Navigation Scripting must be enabled to use this site. http://rsmasters.net/try-catch/java-script-runtime-error.html
window.onerror In all honesty the window.onerror function has very little practical use. Since alert() is a Window object method. You could simply display an alert stating 'An error has occured, please contact the webmaster', for instance, instead of showing the user all the technical details about the error (which most Properties Standard properties Error.prototype.constructor Specifies the function that created an instance's prototype.
I can't debug it properly anyway. –Eric Olson Mar 6 '13 at 21:38 add a comment| up vote 0 down vote Have you tried window.alert("show me");? How to call "intellectual" jobs? The optional finally block executes unconditionally after try/catch. You can also use window.onerror to display somewhat more friendly error messages to your users.
Rate answer 1 of 3Rate answer 2 of 3Rate answer 3 of 3 Please tell us how we can make this answer more useful. Comments- Your Turn! right after the head) by a function which returns true - there will be no error popups, which is quite useful after debugging is done.