Horje

Example of HTML onkeypress Event Attribute

It will Execute a JavaScript when a user presses a key.
index.html
Example: HTML
 <input type="text" onkeypress="displayResult()"> 

Output should be:

Example of HTML onkeypress Event Attribute




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