Fires when the current selection changes.
![]() |
Syntax
| HTML Attribute | <element onselect = "handler(event)"> |
|---|---|
| Event Property | object.onselect = handler; |
| addEventListener Method | object.addEventListener("select", handler, useCapture) |
Event information
| Synchronous | No |
|---|---|
| Bubbles | No |
| Cancelable | No |
Event handler parameters
- pEvtObj [in]
-
Type: IHTMLEventObj
Standards information
- HTML 4.01 Specification, Section 18.2.3
Remarks
Moves the selection to a given character and highlights that selection.
To invoke this event, do one of the following:
- Move the mouse from character to character during a drag selection.
- Press the SHIFT key while moving the cursor over text.
See also
- a
- abbr
- address
- area
- audio
- b
- base
- bdo
- body
- blockQuote
- br
- button
- canvas
- caption
- cite
- code
- col
- colGroup
- comment
- custom
- dd
- del
- div
- dl
- document
- dt
- em
- embed
- fieldSet
- form
- head
- hn
- hr
- html
- i
- iframe
- img
- input type=button
- input type=checkbox
- input type=file
- input type=hidden
- input type=image
- input type=password
- input type=radio
- input type=reset
- input type=submit
- input type=text
- ins
- kbd
- label
- legend
- li
- link
- map
- media
- meta
- object
- ol
- optGroup
- option
- p
- param
- pre
- q
- rt
- ruby
- s
- samp
- script
- select
- small
- source
- span
- strong
- style
- sub
- sup
- table
- tBody
- td
- textArea
- tr
- u
- ul
- var
- video
- window
- Reference
- onselectstart
- select
Send comments about this topic to Microsoft
Build date: 11/29/2012
