Click to return to the DHTML, HTML     
FRAMESPACING Attribute | ...     hash Property     DHTML Properties    
Web Workshop  |  DHTML, HTML & CSS

fromElement Property


Retrieves the object the mouse pointer is exiting during the onmouseover and onmouseout events.

Syntax

HTMLN/A
Scripting[ oObject = ] event.fromElement

Possible Values

oObjectObject 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>

This feature requires Internet Explorer 5 or later. Click the icon below to install the latest version. Then reload this page to view the sample.
Microsoft Internet Explorer

Applies To

[ Object Name ]
PlatformVersion
Win16:
Win32:
Mac:
Unix:
WinCE:
HTML N/A
Scripting event


Back to topBack to top

Did you find this topic useful? Suggestions for other topics? Write us!

© 1999 Microsoft Corporation. All rights reserved. Terms of use.