<HTML>
<HEAD>
<TITLE>Netscape Event Handling Test</TITLE>
</HEAD>
<BODY>

<script>
document.captureEvents( Event.CLICK );
document.onclick = bodyEvent;

function bodyEvent( e )
{
    alert( "Event " + e.type + " caught at body level" );
    
    if ( e.target.name == "myButton" )
        routeEvent( e );
}

function buttonEvent( e )
{
    // Event ends here ...
    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>