asp.net.ph

onselect Event

DHTML Events


Fires when the current selection changes.

Syntax


Inline HTML <element onselect = "handler" ... > All platforms
Event property object.onselect = handler ECMA-262 Language Specification
Named script <script FOR=object EVENT=onselect> Internet Explorer® only

Remarks


Bubbles No
Cancels Yes
To invoke Initiate text selection.
  • Move the mouse from character to character during a drag selection.
  • Press the SHIFT key while moving the cursor over text.
Default action Moves the selection to a given character and highlights that selection.

A select event occurs when a user selects some text in a text field. This event is valid for INPUT and TEXTAREA elements.

Event Object Properties

While event handlers in the Document Object Model do not receive parameters directly, the handler can query the event object for data.

Event Object Properties


Applies To

HTMLAREA, INPUT type=text, TEXTAREA

See Also

onselectstart, select




Contents
HTML Elements
HTML Element Attributes
CSS Attributes
DOM Objects
DOM Object Properties
DOM Events Reference
DOM Methods Reference
DOM Collections Reference
 

Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph