HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
HTML Event Attributes : 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 |
Value | Description |
---|---|
script | The script to be run on onselect |
Supported HTML tags: | <input type="file">, <input type="password">, <input type="text">, and <textarea> |
---|
HTML DOM reference: onselect event
❮ HTML Event Attributes