Syntactic exception : Exception : Development JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Development » Exception »

 

Syntactic exception

















<html>
<head>
<title>Try Catch Example</title>
<script type="text/javascript">
try {
    eval("a -==-++ b");        //causes error
catch (oException) {
    alert("An exception occurred.");
finally {
    alert("All done.");
}

</script>
</head>
<body>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Development
» Exception