professional-javascript-14-ExceptionExample.htm / htm
<html> <head> <title>Exception Test</title> <script type="text/javascript"> function handleLoad() { window.openMySpecialWindow(); alert("Loaded"); } function handleClick() { alert("Clicked"); } </script> </head> <body onload="handleLoad()"> <p>Even though an error occurs when the page is loaded, you can still click the button and have it work correctly.</p> <input type="button" value="Click Me" onclick="handleClick()" /> </body> </html>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.