'event' specifies the event which will execute the script code : event : Object Attributes HTML CSS TUTORIALS


HTML CSS TUTORIALS » Object Attributes » event »

 

'event' specifies the event which will execute the script code



    
<HTML>
<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>  
    
      
      



HTML code for linking to this page:

Follow Navioo On Twitter

HTML CSS TUTORIALS

 Navioo Object Attributes
» event