<HTML> <HEAD> <TITLE>Internet Explorer Event Handling Test</TITLE> </HEAD> <BODY> <script> document.onclick = bodyEvent; function bodyEvent() { // Event ends here ... alert( "Event " + window.event.type + " caught at body level" ); } function buttonEvent( e ) { alert( "Event " + e.type + " caught at button level" ); } </script> <form name="myForm"> <input name="myButton" type="button" value="Click Me" onclick="buttonEvent( event )"> </form> </BODY> </HTML>