HTML onselect Attribute
Definition and Usage
onselect attribute fires after some text has been selected in an element.
onselect attribute is part of the Event Attributes, and can be used on any HTML elements.
|All HTML elements
<input type="text" onselect="myFunction()" value="Hello world!">
Try it Yourself »