Windows apps
Collapse the table of content
Expand the table of content

toElement property

Sets or retrieves a reference to the object toward which the user is moving the mouse pointer or, for a touch device, a finger. For the standards based property see toElement.



p = object.toElement

Property values

Type: Object

the object being moved to by the mouse or finger.


This example uses the toElement property to display the tagName of the object to which the user moves the mouse pointer.

function fnGetTo(){

<SPAN onmouseout="fnGetTo()">
   <P>Mouse Over This</P>
   <P>toElement: <SPAN ID="spanTo"></SPAN></P>



Send comments about this topic to Microsoft

Build date: 11/26/2012

© 2017 Microsoft