select | onselect event

Fires when the current selection changes.

HTML 4.01 Specification, Section 18.2.3

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

SynchronousNo
BubblesNo
CancelableYes

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Standards information

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
blockQuote
body
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=email
input type=file
input type=hidden
input type=image
input type=number
input type=password
input type=radio
input type=range
input type=reset
input type=search
input type=submit
input type=tel
input type=text
input type=url
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
video
wbr
window
xmp
Reference
onselectstart
select

 

 

Show:
© 2014 Microsoft