This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes error handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "error handling" Watch "error handling" New topic
Author

error handling

joy thomas
Greenhorn

Joined: Jul 01, 2011
Posts: 5
kindly check what is the error in the following code..


try
{
adddlert("Welcome");
}
catch(err)
{
txt="There was an error on this page.\n\n";
txt+="Click OK to continue viewing this page,\n";
txt+="or Cancel to return to the home page.\n\n";
if(!confirm(txt))
{
document.location.href=www.move.com;
}
}
}
</script>
</head>

<body>
<input type="button" value="View message" onclick="message()" />
</body>

</html>
 
jQuery in Action, 2nd edition
 
subject: error handling
 
Similar Threads
input/output stream
Shell scripts find n replace the word in files
Problem accessing the form object of a different frame
How do I download files?
jvm error code