'event' Example : event « HTML Attributes Reference « HTML CSS Reference






'event' Example

    
<HTML>
<head><Title>Example For event</Title></head>
<body>
<script language="JavaScript" 
        for="myButton" 
        event="onclick()">alert('button was clicked!')</script>
        <input type="Button" id="myButton" value="Click here to trigger event">
</body>
</HTML>  
    
      
      








Related examples in the same category

1.'event' Syntax and Note
2.event is applied to