toElement Property
Retrieves a reference to the object to which the user is moving the mouse pointer.
Syntax
HTML N/A Scripting [ oObject = ] event.toElement
Possible Values
oObject Object that specifies the object being moved to by the mouse. The property is read-only with no default value.
Example
This example uses the toElement property to display the tagName of the object to which the user moves the mouse pointer.
Sample Code
<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>
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.