[Javascript] Javascript error handling using try catch blocks
denzil.pereira at iflexsolutions.com
denzil.pereira at iflexsolutions.com
Wed Feb 12 22:57:11 CST 2003
Hi Andy,
This will work... i have just modifed ur code snippet and added the try - catch blocks... hope it helps
Cheerz
Denzil
-------------------------------------------------------
<head>
<title>New Page 2</title>
<meta name="GENERATOR" content="Microsoft FrontPage 3.0">
<head>
<script>
try
{
document.write('hi there) // deliberate error
}
catch(e)
{
alert("Error occured : " + e.description);
}
</script>
</head>
<body>
</body>
</html>
_______________________________________________
Javascript mailing list
Javascript at LaTech.edu
More information about the Javascript
mailing list