2 out of 6 rated this helpful - Rate this topic

onselectstart event

[This documentation is preliminary and is subject to change.]

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)

Standards information

There are no standards that apply here.

Event information

SynchronousNo
BubblesNo
CancelableNo

Event handler parameters

pEvtObj [in]

Type: IHTMLEventObj

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:

  • HTMLAnchorEvents2
  • HTMLAreaEvents2
  • HTMLButtonElementEvents2
  • HTMLControlElementEvents2
  • HTMLDocumentEvents2
  • HTMLElementEvents2
  • HTMLFormElementEvents2
  • HTMLImgEvents2
  • HTMLFrameSiteEvents2
  • HTMLInputFileElementEvents2
  • HTMLInputImageEvents2
  • HTMLInputTextElementEvents2
  • HTMLLabelEvents2
  • HTMLLinkElementEvents2
  • HTMLMapEvents2
  • HTMLMarqueeElementEvents2
  • HTMLObjectElementEvents2
  • HTMLOptionButtonElementEvents2
  • HTMLScriptEvents2
  • HTMLSelectElementEvents2
  • HTMLStyleElementEvents2
  • HTMLTableEvents2
  • HTMLTextContainerEvents2
  • HTMLWindowEvents2

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=file
input type=image
input type=password
input type=radio
input type=reset
input type=submit
input type=text
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

 

 

Build date: 3/14/2012

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ
Remark - interpretation
This event apparentlypertains to the selection of text within-or-off-the-right of the object, Not the object itself selected within a container element.

Ray.
anomalies - failures - non firing, tab crash
**** CAUTION - TESTING CAUSES TAB AND DATA LOSS - CAUTION ****
*

*  Examples, non firing:
*  DIV: Shift-arrow selecting text, Except off right-end;
*  DIV: Shift-arrow selecting text off left-end;
*  DIV: Mouse-scoop selecting text off left-end;
*
**** CAUTION - TESTING CAUSES TAB AND DATA LOSS - CAUTION ****
This event does not work on option in ie6
There is no onclick event. I can't figure a way to create listbox which does not allow multiple selection