toElement Property
Gets or sets a reference to the object toward which the user is moving the mouse pointer or, for a touch device, a finger.
Syntax
[ oObject = ] object.toElement
Possible Values
oObject Object that specifies or receives the object being moved to by the mouse or finger. The property is read/write. The property has no default value.
DHTML expressions can be used in place of the preceding value(s). As of Internet Explorer 8, expressions are supported in IE7 Standards mode and IE5 (Quirks) mode only. For more information, see About Dynamic Properties and Defining Document Compatibility.
Remarks
The property is read-only in Microsoft Internet Explorer 4.0, and read/write in Internet Explorer 5 and later.
Example
This example uses the toElement property to display the tagName of the object to which the user moves the mouse pointer.
<SCRIPT> function fnGetTo(){ spanTo.innerHTML=window.event.toElement.tagName; } </SCRIPT> : <SPAN onmouseout="fnGetTo()"> <P>Mouse Over This</P> <P>toElement: <SPAN ID="spanTo"></SPAN></P> </SPAN>Code example: http://samples.msdn.microsoft.com/workshop/samples/author/dhtml/refs/toElement.htm
Standards Information
There is no public standard that applies to this property.
Applies To
event, Event Constructor