Exception handler will bypass the statements : Exception : Development JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Development » Exception »

 

Exception handler will bypass the statements

















<html>
<head>
<title>Try Catch Example</title>
<script type="text/javascript">
try {
    window.nonExistentFunction();
    alert("Method completed.");
catch (oException) {
    alert("An exception occurred: " + oException.message);
finally {
    alert("End of try?tch test.");
}
</script>
</head>
<body>
</body>
</html>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Development
» Exception