Try catch exception
|
|
<html> <head> <title>Try Catch Example</title> <script type="text/javascript"> try { window.nonExistentFunction(); alert("Method completed."); } catch (exception) { alert("An exception occurred."); } finally { alert("End of try?tch test."); } </script> </head> <body> </body> </html>
|
|
|
HTML code for linking to this page:
|