The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.
Fires when the current selection changes.
![]() |
Syntax
| HTML Attribute | <element onselect = "handler(event)"> |
|---|---|
| Event Property | object.onselect = handler; |
| attachEvent Method | object.attachEvent("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
- acronym
- address
- applet
- area
- audio
- b
- base
- baseFont
- bdo
- bgSound
- big
- body
- blockQuote
- br
- button
- canvas
- caption
- center
- cite
- code
- col
- colGroup
- comment
- custom
- dd
- del
- dfn
- dir
- div
- dl
- document
- dt
- em
- embed
- fieldSet
- font
- form
- frame
- frameSet
- 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
- isIndex
- kbd
- label
- legend
- li
- link
- listing
- map
- marquee
- media
- menu
- meta
- nextID
- noBR
- noFrames
- noScript
- object
- ol
- optGroup
- option
- p
- param
- plainText
- pre
- q
- rt
- ruby
- s
- samp
- script
- select
- small
- source
- span
- strike
- strong
- style
- sub
- sup
- table
- tBody
- td
- textArea
- tr
- tt
- u
- ul
- var
- wbr
- video
- window
- xmp
- Reference
- onselectstart
- select
Send comments about this topic to Microsoft
Build date: 1/23/2013
