interviews.dotnetthread.com

↑ Grab this Headline Animator

Monday, July 28, 2008

Handling errors in Javascript like on error to redirect to custom erro page in Javascript.

U can do this in two ways.
1. By using on error event.
< script type="text/javascript">

< /script>

2. Using Try and catch block.

Try
{
///functionality
}
catch(e)
{
window.location.replace("Error.html?error="+e.description);
}

Submit this story to DotNetKicks

No comments:

Post a Comment

Post your comments/questions/feedback for this Article.

 

Latest Articles