Execute a JavaScript after some text has been selected in an <input> element:
The onselect attribute fires after some text has been selected in an element.
Event Attribute | |||||
---|---|---|---|---|---|
onselect | Yes | Yes | Yes | Yes | Yes |
None.
Value | Description |
---|---|
script | The script to be run on onselect |
Supported HTML tags: | <input type="file">, <input type="password">, <input type="text">, <keygen>, and <textarea> |
---|
HTML DOM reference: onselect event