<s>
DOM	B-General_Concept
(	O
Document	B-General_Concept
Object	I-General_Concept
Model	I-General_Concept
)	O
Events	O
are	O
a	O
signal	O
that	O
something	O
has	O
occurred	O
,	O
or	O
is	O
occurring	O
,	O
and	O
can	O
be	O
triggered	O
by	O
user	O
interactions	O
or	O
by	O
the	O
browser	B-Application
.	O
</s>
<s>
Client-side	B-Operating_System
scripting	O
languages	O
like	O
JavaScript	B-Language
,	O
JScript	B-Language
,	O
ECMAScript	B-Language
,	O
VBScript	B-Application
,	O
and	O
Java	B-Language
can	O
register	O
various	O
event	O
handlers	O
or	O
listeners	O
on	O
the	O
element	O
nodes	O
inside	O
a	O
DOM	B-General_Concept
tree	I-General_Concept
,	O
such	O
as	O
in	O
HTML	B-Language
,	O
XHTML	B-Language
,	O
XUL	B-Application
,	O
and	O
SVG	B-Application
documents	O
.	O
</s>
<s>
Examples	O
of	O
DOM	B-Application
Events	I-Application
:	O
</s>
<s>
Historically	O
,	O
like	O
DOM	B-General_Concept
,	O
the	O
event	O
models	O
used	O
by	O
various	O
web	B-Application
browsers	I-Application
had	O
some	O
significant	O
differences	O
which	O
caused	O
compatibility	O
problems	O
.	O
</s>
<s>
To	O
combat	O
this	O
,	O
the	O
event	O
model	O
was	O
standardized	O
by	O
the	O
World	O
Wide	O
Web	O
Consortium	O
(	O
W3C	O
)	O
in	O
DOM	B-General_Concept
Level	O
2	O
.	O
</s>
<s>
Mouse	B-Device
events	O
.	O
</s>
<s>
Keyboard	B-Device
events	O
.	O
</s>
<s>
HTML	B-General_Concept
form	I-General_Concept
events	O
.	O
</s>
<s>
Progress	O
events	O
(	O
used	O
by	O
XMLHttpRequest	B-Protocol
,	O
File	O
API	O
,	O
)	O
.	O
</s>
<s>
Category	O
Type	O
Attribute	O
Description	O
Bubbles	O
Cancelable	O
Mouse	B-Device
click	O
onclick	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
button	O
is	O
clicked	O
over	O
an	O
element	O
.	O
</s>
<s>
click	O
Yes	O
Yes	O
dblclick	O
ondblclick	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
button	O
is	O
double-clicked	O
over	O
an	O
element	O
Yes	O
Yes	O
mousedown	O
onmousedown	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
button	O
is	O
pressed	O
over	O
an	O
element	O
Yes	O
Yes	O
mouseup	O
onmouseup	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
button	O
is	O
released	O
over	O
an	O
element	O
Yes	O
Yes	O
mouseover	O
onmouseover	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
is	O
moved	O
onto	O
an	O
element	O
Yes	O
Yes	O
mousemove	O
onmousemove	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
is	O
moved	O
while	O
it	O
is	O
over	O
an	O
element	O
Yes	O
Yes	O
mouseout	O
onmouseout	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
is	O
moved	O
away	O
from	O
an	O
element	O
Yes	O
Yes	O
dragstart	O
ondragstart	O
Fired	O
on	O
an	O
element	O
when	O
a	O
drag	O
is	O
started	O
.	O
</s>
<s>
Yes	O
Yes	O
dragenter	O
ondragenter	O
Fired	O
when	O
the	O
mouse	B-Device
is	O
first	O
moved	O
over	O
an	O
element	O
while	O
a	O
drag	O
is	O
occurring	O
.	O
</s>
<s>
Yes	O
Yes	O
dragleave	O
ondragleave	O
This	O
event	O
is	O
fired	O
when	O
the	O
mouse	B-Device
leaves	O
an	O
element	O
while	O
a	O
drag	O
is	O
occurring	O
.	O
</s>
<s>
Yes	O
No	O
dragover	O
ondragover	O
This	O
event	O
is	O
fired	O
as	O
the	O
mouse	B-Device
is	O
moved	O
over	O
an	O
element	O
when	O
a	O
drag	O
is	O
occurring	O
.	O
</s>
<s>
Yes	O
No	O
Keyboard	B-Device
keydown	O
onkeydown	O
Fires	O
before	O
keypress	O
,	O
when	O
a	O
key	O
on	O
the	O
keyboard	B-Device
is	O
pressed	O
.	O
</s>
<s>
Yes	O
Yes	O
keypress	O
onkeypress	O
Fires	O
after	O
keydown	O
,	O
when	O
a	O
key	O
on	O
the	O
keyboard	B-Device
is	O
pressed	O
.	O
</s>
<s>
For	O
elements	O
,	O
it	O
fires	O
when	O
the	O
target	O
element	O
or	O
any	O
of	O
its	O
content	O
has	O
been	O
removed	O
No	O
No	O
abort	O
onabort	O
Fires	O
when	O
an	O
object/image	O
is	O
stopped	O
from	O
loading	O
before	O
completely	O
loaded	O
Yes	O
No	O
error	O
onerror	O
Fires	O
when	O
an	O
object/image/frame	O
cannot	O
be	O
loaded	O
properly	O
Yes	O
No	O
resize	O
onresize	O
Fires	O
when	O
a	O
document	O
view	O
is	O
resized	O
Yes	O
No	O
scroll	O
onscroll	O
Fires	O
when	O
an	O
element	O
or	O
document	O
view	O
is	O
scrolled	O
No	O
,	O
except	O
that	O
a	O
scroll	O
event	O
on	O
document	O
must	O
bubble	O
to	O
the	O
window	O
No	O
HTML	B-General_Concept
form	I-General_Concept
select	O
onselect	O
Fires	O
when	O
a	O
user	O
selects	O
some	O
text	O
in	O
a	O
text	O
field	O
,	O
including	O
input	O
and	O
textarea	O
Yes	O
No	O
change	O
onchange	O
Fires	O
when	O
a	O
control	O
loses	O
the	O
input	O
focus	B-Application
and	O
its	O
value	O
has	O
been	O
modified	O
since	O
gaining	O
focus	B-Application
Yes	O
No	O
submit	O
onsubmit	O
Fires	O
when	O
a	O
form	O
is	O
submitted	O
Yes	O
Yes	O
reset	O
onreset	O
Fires	O
when	O
a	O
form	O
is	O
reset	O
Yes	O
No	O
focus	B-Application
onfocus	O
Fires	O
when	O
an	O
element	O
receives	O
focus	B-Application
either	O
via	O
the	O
pointing	B-Device
device	I-Device
or	O
by	O
tab	B-Application
navigation	I-Application
No	O
No	O
blur	O
onblur	O
Fires	O
when	O
an	O
element	O
loses	O
focus	B-Application
either	O
via	O
the	O
pointing	B-Device
device	I-Device
or	O
by	O
tabbing	B-Application
navigation	I-Application
No	O
No	O
User	O
interface	O
focusin	O
(	O
none	O
)	O
Similar	O
to	O
HTML	B-Language
focus	B-Application
event	O
,	O
but	O
can	O
be	O
applied	O
to	O
any	O
focusable	O
element	O
Yes	O
No	O
focusout	O
(	O
none	O
)	O
Similar	O
to	O
HTML	B-Language
blur	O
event	O
,	O
but	O
can	O
be	O
applied	O
to	O
any	O
focusable	O
element	O
Yes	O
No	O
DOMActivate	O
(	O
none	O
)	O
Similar	O
to	O
XUL	B-Application
command	O
event	O
.	O
</s>
<s>
Fires	O
when	O
an	O
element	O
is	O
activated	O
,	O
for	O
instance	O
,	O
through	O
a	O
mouse	B-Device
click	O
or	O
a	O
keypress	O
.	O
</s>
<s>
Yes	O
Yes	O
Mutation	O
DOMSubtreeModified	O
(	O
none	O
)	O
Fires	O
when	O
the	O
subtree	O
is	O
modified	O
Yes	O
No	O
DOMNodeInserted	O
(	O
none	O
)	O
Fires	O
when	O
a	O
node	O
has	O
been	O
added	O
as	O
a	O
child	O
of	O
another	O
node	O
Yes	O
No	O
DOMNodeRemoved	O
(	O
none	O
)	O
Fires	O
when	O
a	O
node	O
has	O
been	O
removed	O
from	O
a	O
DOM-tree	O
Yes	O
No	O
DOMNodeRemovedFromDocument	O
(	O
none	O
)	O
Fires	O
when	O
a	O
node	O
is	O
being	O
removed	O
from	O
a	O
document	O
No	O
No	O
DOMNodeInsertedIntoDocument	O
(	O
none	O
)	O
Fires	O
when	O
a	O
node	O
is	O
being	O
inserted	O
into	O
a	O
document	O
No	O
No	O
DOMAttrModified	O
(	O
none	O
)	O
Fires	O
when	O
an	O
attribute	O
has	O
been	O
modified	O
Yes	O
No	O
DOMCharacterDataModified	O
(	O
none	O
)	O
Fires	O
when	O
the	O
character	O
data	O
has	O
been	O
modified	O
Yes	O
No	O
Progress	O
loadstart	O
(	O
none	O
)	O
Progress	O
has	O
begun	O
.	O
</s>
<s>
Note	O
that	O
the	O
events	O
whose	O
names	O
start	O
with	O
"	O
DOM	B-General_Concept
"	O
are	O
currently	O
not	O
well	O
supported	O
,	O
and	O
for	O
this	O
and	O
other	O
performance	O
reasons	O
are	O
deprecated	O
by	O
the	O
W3C	O
in	O
DOM	B-General_Concept
Level	O
3	O
.	O
</s>
<s>
Mozilla	B-Operating_System
and	O
Opera	B-Application
support	O
DOMAttrModified	O
,	O
DOMNodeInserted	O
,	O
DOMNodeRemoved	O
and	O
DOMCharacterDataModified	O
.	O
</s>
<s>
Chrome	B-Application
and	O
Safari	B-Application
support	O
these	O
events	O
,	O
except	O
for	O
DOMAttrModified	O
.	O
</s>
<s>
Web	B-Application
browsers	I-Application
running	O
on	O
touch-enabled	B-Device
devices	O
,	O
such	O
as	O
Apple	O
's	O
iOS	B-Operating_System
and	O
Google	B-Application
's	I-Application
Android	I-Application
,	O
generate	O
additional	O
events	O
.	O
</s>
<s>
Yes	O
Yes	O
touchenter	O
Fires	O
when	O
a	O
touch	O
point	O
moves	O
onto	O
the	O
interactive	O
area	O
defined	O
by	O
a	O
DOM	B-General_Concept
element	O
.	O
</s>
<s>
Yes	O
Yes	O
touchleave	O
Fires	O
when	O
a	O
touch	O
point	O
moves	O
off	O
the	O
interactive	O
area	O
defined	O
by	O
a	O
DOM	B-General_Concept
element	O
.	O
</s>
<s>
Yes	O
Yes	O
touchcancel	O
A	O
user	B-Protocol
agent	I-Protocol
must	O
dispatch	O
this	O
event	O
type	O
to	O
indicate	O
when	O
a	O
TouchPoint	O
has	O
been	O
disrupted	O
in	O
an	O
implementation-specific	O
manner	O
,	O
such	O
as	O
by	O
moving	O
outside	O
the	O
bounds	O
of	O
the	O
UA	O
window	O
.	O
</s>
<s>
A	O
user	B-Protocol
agent	I-Protocol
may	O
also	O
dispatch	O
this	O
event	O
type	O
when	O
the	O
user	O
places	O
more	O
touch	O
points	O
(	O
The	O
coordinate	O
point	O
at	O
which	O
a	O
pointer	O
(	O
e.g.	O
</s>
<s>
In	O
the	O
W3C	O
draft	O
recommendation	O
,	O
a	O
TouchEvent	O
delivers	O
a	O
TouchList	O
of	O
Touch	O
locations	O
,	O
the	O
modifier	B-Device
keys	I-Device
that	O
were	O
active	O
,	O
a	O
TouchList	O
of	O
Touch	O
locations	O
within	O
the	O
targeted	O
DOM	B-General_Concept
element	O
,	O
and	O
a	O
TouchList	O
of	O
Touch	O
locations	O
that	O
have	O
changed	O
since	O
the	O
previous	O
TouchEvent	O
.	O
</s>
<s>
Web	B-Application
browsers	I-Application
on	O
devices	O
with	O
various	O
types	O
of	O
input	O
devices	O
including	O
mouse	B-Device
,	O
touch	B-Device
panel	I-Device
,	O
and	O
pen	O
may	O
generate	O
integrated	O
input	O
events	O
.	O
</s>
<s>
As	O
of	O
October	O
2013	O
,	O
this	O
event	O
is	O
only	O
supported	O
by	O
Internet	B-Application
Explorer	I-Application
10	O
and	O
11	O
.	O
</s>
<s>
Category	O
Type	O
Attribute	O
Description	O
Bubbles	O
Cancelable	O
Pointer	O
pointerdown	O
onpointerdown	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
button	O
is	O
activated	O
,	O
or	O
pressed	O
over	O
an	O
element	O
.	O
</s>
<s>
Yes	O
Yes	O
pointerup	O
onpointerup	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
button	O
is	O
released	O
over	O
an	O
element	O
Yes	O
Yes	O
pointercancel	O
onpointercancel	O
Fires	O
when	O
a	O
pointing	B-Device
device	I-Device
is	O
unlikely	O
to	O
continue	O
to	O
produce	O
event	O
because	O
,	O
for	O
example	O
,	O
the	O
device	O
is	O
used	O
for	O
panning/zooming	O
after	O
a	O
pointerdown	O
event	O
.	O
</s>
<s>
Yes	O
Yes	O
pointermove	O
onpointermove	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
is	O
moved	O
while	O
it	O
is	O
over	O
an	O
element	O
Yes	O
Yes	O
pointerover	O
onpointerover	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
is	O
moved	O
onto	O
an	O
element	O
Yes	O
Yes	O
pointerout	O
onpointerout	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
is	O
moved	O
away	O
from	O
an	O
element	O
.	O
</s>
<s>
Also	O
fires	O
after	O
pointerup	O
by	O
pointing	B-Device
device	I-Device
without	O
hovering	O
,	O
or	O
after	O
Yes	O
Yes	O
pointerenter	O
onpointerenter	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
is	O
moved	O
onto	O
an	O
element	O
,	O
or	O
when	O
the	O
button	O
of	O
the	O
pointing	B-Device
device	I-Device
which	O
does	O
not	O
support	O
hovering	O
is	O
pressed	O
on	O
one	O
of	O
its	O
descendant	O
elements	O
.	O
</s>
<s>
No	O
Yes	O
pointerleave	O
onpointerleave	O
Fires	O
when	O
the	O
pointing	B-Device
device	I-Device
is	O
moved	O
away	O
from	O
an	O
element	O
,	O
or	O
when	O
the	O
button	O
of	O
the	O
pointing	B-Device
device	I-Device
which	O
does	O
not	O
support	O
hovering	O
is	O
released	O
over	O
its	O
descendant	O
elements	O
.	O
</s>
<s>
Command+Z	O
on	O
Mac	B-Operating_System
OS	I-Operating_System
X	I-Operating_System
.	O
</s>
<s>
Yes	O
Yes	O
Focus	B-Application
Request	O
directionalfocusrequest	O
Initiated	O
when	O
the	O
user	B-Protocol
agent	I-Protocol
sends	O
a	O
"	O
direction	O
focus	B-Application
"	O
request	O
to	O
the	O
web	O
application	O
.	O
</s>
<s>
Web	O
authors	O
should	O
not	O
use	O
or	O
register	O
for	O
directionalfocusrequest	O
events	O
when	O
standard	O
browser	B-Application
focus	B-Application
and	O
blur	O
events	O
are	O
sufficient	O
.	O
</s>
<s>
Yes	O
Yes	O
linearfocusrequest	O
Initiated	O
when	O
the	O
user	B-Protocol
agent	I-Protocol
sends	O
a	O
"	O
linear	O
focus	B-Application
"	O
request	O
to	O
the	O
web	O
application	O
.	O
</s>
<s>
Web	O
authors	O
should	O
not	O
use	O
or	O
register	O
for	O
linearfocusrequest	O
events	O
when	O
standard	O
browser	B-Application
focus	B-Application
and	O
blur	O
events	O
are	O
sufficient	O
.	O
</s>
<s>
This	O
event	O
type	O
is	O
only	O
necessary	O
on	O
specialized	O
control	O
types	O
such	O
as	O
data	O
grids	O
where	O
the	O
logical	O
next	O
element	O
may	O
not	O
be	O
focusable	O
or	O
even	O
in	O
the	B-General_Concept
DOM	I-General_Concept
until	O
requested	O
.	O
</s>
<s>
Yes	O
Yes	O
palettefocusrequest	O
Initiated	O
when	O
the	O
user	B-Protocol
agent	I-Protocol
sends	O
a	O
"	O
palette	O
focus	B-Application
"	O
request	O
to	O
the	O
web	O
application	O
.	O
</s>
<s>
Web	O
app	O
authors	O
receiving	O
this	O
event	O
should	O
move	O
focus	B-Application
to	O
the	O
first	O
palette	O
in	O
the	O
web	O
application	O
,	O
or	O
cycle	O
focus	B-Application
between	O
all	O
available	O
palettes	O
.	O
</s>
<s>
Yes	O
Yes	O
toolbarfocusrequest	O
Initiated	O
when	O
the	O
user	B-Protocol
agent	I-Protocol
sends	O
a	O
"	O
toolbar	O
focus	B-Application
"	O
request	O
to	O
the	O
web	O
application	O
.	O
</s>
<s>
Web	O
app	O
authors	O
receiving	O
this	O
event	O
should	O
move	O
focus	B-Application
to	O
the	O
main	O
toolbar	O
in	O
the	O
web	O
application	O
,	O
or	O
cycle	O
focus	B-Application
between	O
all	O
available	O
toolbars	O
.	O
</s>
<s>
Yes	O
Yes	O
Manipulation	O
Request	O
moverequest	O
Initiated	O
when	O
the	O
user	B-Protocol
agent	I-Protocol
sends	O
a	O
move	O
request	O
to	O
the	O
web	O
application	O
with	O
accompanying	O
x/y	O
delta	O
values	O
.	O
</s>
<s>
Yes	O
Yes	O
panrequest	O
Initiated	O
when	O
the	O
user	B-Protocol
agent	I-Protocol
sends	O
a	O
pan	O
request	O
to	O
the	O
web	O
application	O
with	O
accompanying	O
x/y	O
delta	O
values	O
.	O
</s>
<s>
Yes	O
Yes	O
rotationrequest	O
Initiated	O
when	O
the	O
user	B-Protocol
agent	I-Protocol
sends	O
a	O
rotation	O
request	O
to	O
the	O
web	O
application	O
with	O
accompanying	O
origin	O
x/y	O
values	O
and	O
a	O
rotation	O
value	O
in	O
degrees	O
.	O
</s>
<s>
Yes	O
Yes	O
zoomrequest	O
Initiated	O
when	O
the	O
user	B-Protocol
agent	I-Protocol
sends	O
a	O
zoom	O
request	O
to	O
the	O
web	O
application	O
with	O
accompanying	O
origin	O
x/y	O
values	O
and	O
the	O
zoom	O
scale	O
factor	O
.	O
</s>
<s>
Yes	O
Yes	O
Scroll	O
Request	O
scrollrequest	O
Initiated	O
when	O
the	O
user	B-Protocol
agent	I-Protocol
sends	O
a	O
scroll	O
request	O
to	O
the	O
web	O
application	O
with	O
accompanying	O
x/y	O
delta	O
values	O
or	O
one	O
of	O
the	O
other	O
defined	O
scrollType	O
values	O
.	O
</s>
<s>
Yes	O
Yes	O
ValueChange	O
Request	O
valuechangerequest	O
Initiated	O
when	O
the	O
user	B-Protocol
agent	I-Protocol
sends	O
a	O
value	O
change	O
request	O
to	O
the	O
web	O
application	O
.	O
</s>
<s>
In	O
addition	O
to	O
the	O
common	O
(	O
W3C	O
)	O
events	O
,	O
two	O
major	O
types	O
of	O
events	O
are	O
added	O
by	O
Internet	B-Application
Explorer	I-Application
.	O
</s>
<s>
Some	O
of	O
the	O
events	O
have	O
been	O
implemented	O
as	O
de	O
facto	O
standards	O
by	O
other	O
browsers	B-Application
.	O
</s>
<s>
Yes	O
No	O
Mouse	B-Device
contextmenu	O
oncontextmenu	O
Fires	O
when	O
the	O
context	O
menu	O
is	O
shown	O
.	O
</s>
<s>
Yes	O
Yes	O
drag	O
ondrag	O
Fires	O
when	O
during	O
a	O
mouse	B-Device
drag	O
(	O
on	O
the	O
moving	O
Element	O
)	O
.	O
</s>
<s>
Yes	O
Yes	O
dragstart	O
ondragstart	O
Fires	O
when	O
a	O
mouse	B-Device
drag	O
begins	O
(	O
on	O
the	O
moving	O
Element	O
)	O
.	O
</s>
<s>
Yes	O
Yes	O
dragend	O
ondragend	O
Fires	O
when	O
a	O
mouse	B-Device
drag	O
ends	O
(	O
on	O
the	O
moving	O
Element	O
)	O
.	O
</s>
<s>
Yes	O
Yes	O
drop	O
ondrop	O
Fires	O
when	O
a	O
mouse	B-Device
button	O
is	O
released	O
over	O
a	O
valid	O
target	O
during	O
a	O
drag	O
(	O
on	O
the	O
target	O
Element	O
)	O
.	O
</s>
<s>
Yes	O
Yes	O
Keyboard	B-Device
help	O
onhelp	O
Fires	O
when	O
the	O
user	O
initiates	O
help	O
.	O
</s>
<s>
(	O
unlike	O
abort	O
,	O
stop	O
event	O
can	O
be	O
attached	O
to	O
document	O
)	O
No	O
No	O
HTML	B-General_Concept
form	I-General_Concept
beforeeditfocus	O
onbeforeeditfocus	O
Fires	O
before	O
an	O
element	O
gains	O
focus	B-Application
for	O
editing	O
.	O
</s>
<s>
Note	O
that	O
Mozilla	B-Operating_System
,	O
Safari	B-Application
and	O
Opera	B-Application
also	O
support	O
the	O
readystatechange	O
event	O
for	O
the	O
XMLHttpRequest	B-Protocol
object	O
.	O
</s>
<s>
Mozilla	B-Operating_System
also	O
supports	O
the	O
beforeunload	O
event	O
using	O
the	O
traditional	O
event	O
registration	O
method	O
(	O
DOM	B-General_Concept
Level	O
0	O
)	O
.	O
</s>
<s>
Mozilla	B-Operating_System
and	O
Safari	B-Application
also	O
support	O
contextmenu	O
,	O
but	O
Internet	B-Application
Explorer	I-Application
for	O
Mac	O
does	O
not	O
.	O
</s>
<s>
In	O
addition	O
to	O
the	O
common	O
(	O
W3C	O
)	O
events	O
,	O
Mozilla	B-Operating_System
defined	O
a	O
set	O
of	O
events	O
that	O
work	O
only	O
with	O
XUL	B-Application
elements	O
.	O
</s>
<s>
Category	O
Type	O
Attribute	O
Description	O
Bubbles	O
Cancelable	O
Mouse	B-Device
DOMMouseScroll	O
DOMMouseScroll	O
Fires	O
when	O
the	O
mouse	B-Device
wheel	O
is	O
moved	O
,	O
causing	O
the	O
content	O
to	O
scroll	O
.	O
</s>
<s>
Yes	O
Yes	O
dragdrop	O
ondragdrop	O
Fires	O
when	O
the	O
user	O
releases	O
the	O
mouse	B-Device
button	O
to	O
drop	O
an	O
object	O
being	O
dragged	O
.	O
</s>
<s>
No	O
No	O
dragenter	O
ondragenter	O
Fires	O
when	O
the	O
mouse	B-Device
pointer	O
first	O
moves	O
over	O
an	O
element	O
during	O
a	O
drag	O
.	O
</s>
<s>
No	O
No	O
dragexit	O
ondragexit	O
Fires	O
when	O
the	O
mouse	B-Device
pointer	O
moves	O
away	O
from	O
an	O
element	O
during	O
a	O
drag	O
.	O
</s>
<s>
No	O
No	O
draggesture	O
ondraggesture	O
Fires	O
when	O
the	O
user	O
starts	O
dragging	O
the	O
element	O
,	O
usually	O
by	O
holding	O
down	O
the	O
mouse	B-Device
button	O
and	O
moving	O
the	O
mouse	B-Device
.	O
</s>
<s>
Fires	O
when	O
an	O
element	O
is	O
activated	O
,	O
for	O
instance	O
,	O
through	O
a	O
mouse	B-Device
click	O
or	O
a	O
keypress	O
.	O
</s>
<s>
For	O
Mozilla	B-Operating_System
and	O
Opera	B-Application
9	O
,	O
there	O
are	O
also	O
undocumented	O
events	O
known	O
as	O
DOMContentLoaded	O
and	O
DOMFrameContentLoaded	O
which	O
fire	O
when	O
the	B-General_Concept
DOM	I-General_Concept
content	O
is	O
loaded	O
.	O
</s>
<s>
However	O
,	O
DOMContentLoaded	O
has	O
been	O
added	O
to	O
the	O
HTML	B-Application
5	I-Application
specification	O
.	O
</s>
<s>
The	O
DOMContentLoaded	O
event	O
was	O
also	O
implemented	O
in	O
the	O
Webkit	B-Language
rendering	O
engine	O
build	O
500+	O
.	O
</s>
<s>
This	O
correlates	O
to	O
all	O
versions	O
of	O
Google	B-Application
Chrome	I-Application
and	O
Safari	B-Application
3.1	O
+	O
.	O
</s>
<s>
DOMContentLoaded	O
is	O
also	O
implemented	O
in	O
Internet	B-Application
Explorer	I-Application
9	I-Application
.	O
</s>
<s>
Opera	B-Application
9	O
also	O
supports	O
the	O
Web	B-General_Concept
Forms	I-General_Concept
2.0	O
events	O
DOMControlValueChanged	O
,	O
invalid	O
,	O
forminput	O
and	O
formchange	O
.	O
</s>
<s>
This	O
model	O
is	O
implemented	O
in	O
Netscape	B-Protocol
Navigator	I-Protocol
.	O
</s>
<s>
Trigger	O
the	O
elements	O
from	O
inner	O
to	O
outer	O
(	O
event	B-Language
bubbling	I-Language
)	O
.	O
</s>
<s>
This	O
model	O
is	O
implemented	O
in	O
Internet	B-Application
Explorer	I-Application
and	O
other	O
browsers	B-Application
.	O
</s>
<s>
Canceling	O
an	O
event	O
will	O
opt	O
out	O
of	O
the	O
default	O
browser	B-Application
behaviour	O
for	O
that	O
event	O
.	O
</s>
<s>
The	O
Event	O
object	O
provides	O
a	O
lot	O
of	O
information	O
about	O
a	O
particular	O
event	O
,	O
including	O
information	O
about	O
target	O
element	O
,	O
key	O
pressed	O
,	O
mouse	B-Device
button	O
pressed	O
,	O
mouse	B-Device
position	O
,	O
etc	O
.	O
</s>
<s>
Unfortunately	O
,	O
there	O
are	O
very	O
serious	O
browser	B-Application
incompatibilities	O
in	O
this	O
area	O
.	O
</s>
<s>
+Event	O
properties	O
Name	O
Type	O
Description	O
type	O
DOMString	O
The	O
name	O
of	O
the	O
event	O
(	O
case-insensitive	O
in	O
DOM	B-General_Concept
level	O
2	O
but	O
case-sensitive	O
in	O
DOM	B-General_Concept
level	O
3	O
)	O
.	O
</s>
<s>
This	O
event	O
handling	O
model	O
was	O
introduced	O
by	O
Netscape	B-Protocol
Navigator	I-Protocol
,	O
and	O
remains	O
the	O
most	O
cross-browser	O
model	O
.	O
</s>
<s>
While	O
it	O
may	O
seem	O
like	O
that	O
is	O
the	O
case	O
in	O
the	O
example	O
above	O
,	O
what	O
is	O
really	O
happening	O
is	O
that	O
the	O
JavaScript	B-Language
engine	I-Language
of	O
the	O
browser	B-Application
creates	O
an	O
anonymous	B-General_Concept
function	I-General_Concept
containing	O
the	O
statements	O
in	O
the	O
onclick	O
attribute	O
.	O
</s>
<s>
The	O
onclick	O
handler	O
of	O
the	O
element	O
would	O
be	O
bound	O
to	O
the	O
following	O
anonymous	B-General_Concept
function	I-General_Concept
:	O
</s>
<s>
This	O
limitation	O
of	O
the	O
JavaScript	B-Language
event	O
model	O
is	O
usually	O
overcome	O
by	O
assigning	O
attributes	O
to	O
the	O
function	O
object	O
of	O
the	O
event	O
handler	O
or	O
by	O
using	O
closures	B-Language
.	O
</s>
<s>
Inner	O
functions	O
preserve	O
their	O
scope	B-Language
.	O
</s>
<s>
The	O
W3C	O
designed	O
a	O
more	O
flexible	O
event	O
handling	O
model	O
in	O
DOM	B-General_Concept
Level	O
2	O
.	O
</s>
<s>
This	O
model	O
is	O
supported	O
by	O
Mozilla	B-Operating_System
,	O
Opera	B-Application
,	O
Safari	B-Application
,	O
Chrome	B-Application
and	O
Konqueror	B-Application
.	O
</s>
<s>
Microsoft	B-Application
Internet	I-Application
Explorer	I-Application
prior	O
to	O
version	O
8	O
does	O
not	O
follow	O
the	O
W3C	O
model	O
,	O
as	O
its	O
own	O
model	O
was	O
created	O
prior	O
to	O
the	O
ratification	O
of	O
the	O
W3C	O
standard	O
.	O
</s>
<s>
Internet	B-Application
Explorer	I-Application
9	I-Application
follows	O
DOM	B-General_Concept
level	O
3	O
events	O
,	O
and	O
Internet	B-Application
Explorer	I-Application
11	O
deletes	O
its	O
support	O
for	O
Microsoft-specific	O
model	O
.	O
</s>
<s>
To	O
prevent	O
an	O
event	B-Language
bubbling	I-Language
,	O
developers	O
must	O
set	O
the	O
event	O
's	O
cancelBubble	O
property	O
.	O
</s>
<s>
This	O
model	O
is	O
supported	O
by	O
Microsoft	B-Application
Internet	I-Application
Explorer	I-Application
and	O
Trident	O
based	O
browsers	B-Application
(	O
e.g.	O
</s>
<s>
Maxthon	B-Application
,	O
Avant	B-Application
Browser	I-Application
)	O
.	O
</s>
