<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>