MDN self-hosted library · e01.org

HTMLTextAreaElement: select event

HTML DOM

no runnable cells web-api-event upstream source

HTML DOM

The select event of the HTMLTextAreaElement interface fires when the selection's extent or direction is changed programmatically, or when the user selects text.

For general information about this event, see HTMLInputElement: select event.

Syntax

Use the event name in addEventListener():

addEventListener("select", (event) => { })

Alternatively, assign to the event handler property of the interface:

onselect = (event) => { }

Event type

A generic Event.

Specifications

Browser compatibility