HTML CSS Reference/HTML Attributes Reference/event
"event" Example
<source lang="html4strict">
<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>
</source>
event is applied to
<source lang="html4strict">
+----------------+--------------------------------------------------------------+ | Applied_To |<script> | +----------------+--------------------------------------------------------------+
</source>
"event" Syntax and Note
<source lang="html4strict">
Note:
This attribute specifies the event which will execute the script code.
Syntax:
<script event="value"> . . . </script>
</source>