HTML | onselect Event Attribute
The onselect event attribute works when some text has been selected in an element. It is the part of event attribute. It is supported by many HTML elements such as <input type = “file”>, <input type = “password”>, <input type = “text”>, and <textarea>.
Attention reader! Don’t stop learning now. Get hold of all the important HTML concepts with the Web Design for Beginners | HTML course.
- <input type=”file”>
- <input type=”password”>
- <input type=”text”>
<element onselect = "script">
Supported Browsers: The browser supported by onselect attribute are listed below:
- Apple Safari
- Google Chrome
- Internet Explorer