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
HTML N/A Scripting event