.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
 
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
david stephan

Home >> Code Snippets >> Javascript >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Hide JavaScript Errors

Posted By:Lakhan Pal Garg       Posted Date: September 16, 2009    Points: 10    Category: Javascript    URL: http://www.dotnetspark.com  
 

This Method is used to Handle / Hide  JavaScript Error that we don't want to show in case of unavoidable conditions.

Code:
function handleError()
{
return true;
}
window.onerror = handleError;


     

Further Readings:

Responses
Author: Gabriel McAdams         Company URL: http://www.dotnetspark.com
Posted Date: February 02, 2010

I have just released code to help log JavaScript errors by sending error information to the server -
http://www.thecodepage.com/post/JavaScript-Error-Notifications.aspx

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend