Mega Code Archive

 
Categories / JavaScript Tutorial / Development
 

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>