selectstart | onselectstart event

Fires when the object is being selected.

Syntax

HTML Attribute <element onselectstart = "handler(event)">
Event Property object.onselectstart = handler;
attachEvent Method object.attachEvent("onselectstart", handler)
addEventListener Method object.addEventListener("selectstart", handler, useCapture)

 

Event information

SynchronousNo
BubblesYes
CancelableYes

 

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

Standards information

There are no standards that apply here.

Remarks

The object at the beginning of the selection fires the event.

Moves the selection to an object and highlights that selection.

To invoke this event, do one of the following:

  • Begin selecting one or more objects.

The pEvtObj parameter is required for the following interfaces:

See also

a
abbr
acronym
address
area
b
bdo
big
blockQuote
body
button
caption
center
cite
code
custom
dd
del
dfn
dir
div
dl
dt
em
fieldSet
font
form
hn
hr
i
img
input type=button
input type=checkbox
input type=email
input type=file
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
kbd
label
li
listing
map
marquee
menu
nextID
noBR
object
ol
option
p
plainText
pre
q
rt
ruby
s
samp
select
small
span
strike
strong
sub
sup
table
tBody
td
textArea
tFoot
th
tHead
tr
tt
u
ul
var
xmp
Reference
onselect
select

 

 

Show:
© 2014 Microsoft