Availability: |
| |||||||
Property/method value type: | Boolean primitive | |||||||
JavaScript syntax: | - | myObject.onmouseout = aHandler | ||||||
HTML syntax: | <A onMouseOut="..."> <AREA onMouseOut="..."> <HTMLTag onMouseOut="..."> <IMG onMouseOut="..."> <LAYER onMouseOut="..."> | |||||||
Argument list: | aHandler | A reference to a function object to handle the event |
When you move the mouse, the browser generates mouse move events and sends them to the Element object that is under the mouse at that moment. As the mouse reaches the boundary of an element a mouse out event and a mouse over event are generated and directed to the appropriate elements for them to handle.
DOM level 2 classifies this as a MouseEvent and specifies that it uses bubbling propagation and can be canceled.
You may need to implement some code for this handler to reset the status line after changing it with an onMouseOver event handler. That would be necessary for Netscape 2.0 and 3.0 on the Windows platform.
As a mouse is moved over an element, an entry event is triggered. It can cause severe browser crashing problems if you are creating and destroying objects under the mouse while it is moving. In particular, the destruction of an object can mean that the mouse out has no logical destination since it must somehow leave the element it entered.
A
ACRONYM
ADDRESS
Anchor
APPLET
AREA
B
BIG
BLOCKQUOTE
BODY
BUTTON
CAPTION
CENTER
Checkbox
CITE
CODE
DD
DEL
DFN
DIR
DIV
DL
Document
DT
EM
FIELDSET
FileUpload
FONT
FORM
H1
HR
I
IMG
Input
INS
KBD
LABEL
Layer
LEGEND
LI
LISTING
MAP
MARQUEE
MENU
OL
P
Password
PLAINTEXT
PRE
Q
RadioButton
ResetButton
S
SAMP
Select
SMALL
SPAN
STRIKE
STRONG
SUB
SubmitButton
SUP
TABLE
TBODY
TD
TEXTAREA
TextCell
TFOOT
TH
THEAD
TR
TT
U
UL
Url
VAR
Prev | Home | Next |
onMouseMove | Up | onMouseOver |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |