onSelect

Arguments

eventEvent

An object that contains properties and methods for inspecting and manipulating the browser event. This object can be referenced in JavaScript added to the event, either through Action Javascript or using Text Mode.

See Event (MDN Web Docs) for more details.

Description

Fires when the user selects text in the control.

Discussion

The onSelect event fires when the user selects text within a TextBox or TextArea control. Selection is when the user highlights text in a text control. Selection is often used when choosing text to copy from the control.

Some controls do not support the onSelect event.