fromElement Property
Retrieves the object the mouse pointer is exiting during the onmouseover and onmouseout events.
Syntax
HTML N/A Scripting [ oObject = ] event.fromElement
Possible Values
oObject Object that specifies the previous location of the mouse pointer. The property is read-only with no default value.
Example
In this example, the alert returns "mouse arrived" when the mouse pointer moves over the button.
Sample Code
<SCRIPT> function testMouse(oObject) { if(!oObject.contains(event.fromElement)) { alert("mouse arrived"); } } </SCRIPT> : <BUTTON ID=oButton onmouseover="testMouse(this)">Mouse Over This.</BUTTON>
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus.
HTML N/A Scripting event
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.