Horje

Example of HTML onpaste Event Attribute

It will execute a JavaScript when pasting some text in an <input> element.
index.html
Example: HTML
 <input type="text" onpaste="myFunction()" value="Paste something in here"> 

Output should be:

Example of HTML onpaste Event Attribute




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