Horje

Example of HTML onclick Event Attribute

It will Execute a JavaScript when a button is clicked.
index.html
Example: HTML
 <button onclick="myFunction()">Click me</button> 

Output should be:

Example of HTML onclick Event Attribute




Type:
html
Category:
Web Tutorial
Sub Category:
HTML Mouse Events Attribute
Uploaded by:
Admin