JavaScript Reference/Javascript Properties/toElement
"toElement" Example
<source lang="javascript">
<html> <head> <script>
function alertMe() { alert(event.toElement.innerText); }
</script> </head> <body>
CELL 1 |
CELL 2 |
CELL 3 |
</body> </html>
</source>
"toElement" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |event | +----------------+--------------------------------------------------------------+
</source>
"toElement" Syntax and Note
<source lang="javascript">
Note: Read-only property. When you move the mouse across a page, the onmousemove, onmouseover, and onmouseout events are triggered every time you enter the region of an element. This property returns the element that is directly underneath the mouse pointer.
Syntax:
window.event.toElement
</source>