<html> <head> <title>Try Catch Example</title> <script type="text/javascript"> try { var arrErrors = new Array(10000000000000000000000); //causes error arrErrors.push(exception); } catch (oException) { alert("An exception occurred."); } finally { alert("All done."); } </script> </head> <body> </body> </html>