'event' Example : Script « HTML « JavaScript DHTML






'event' Example

    
<html>
<body>
<script id="myScript" for="myButton" event="onclick()">
    alert(myScript.event);
</script>
<button id="myButton">Event for This Script</button>
</body>
</html>

    
      
      








Related examples in the same category

1.Script 'language' Example
2.script 'text' Example
3.Script 'defer' Example