Horje

Example of HTML onselect Event Attribute

It will Execute a JavaScript after some text has been selected in an <input> element.
index.html
Example: HTML
 <input type="text" onselect="myFunction()" value="Hello world!"> 

Output should be:

Example of HTML onselect Event Attribute




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