JavaScript Reference/Javascript Properties/fromElement
"fromElement" Example
<source lang="javascript">
<html> <head> <script>
function function1() { alert(event.fromElement.innerText); }
</script> </head>
<body>CELL 1 |
CELL 2 |
CELL 3 |
</body> </html>
</source>
"fromElement" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |event | +----------------+--------------------------------------------------------------+
</source>
"fromElement" Syntax and Note
<source lang="javascript">
Note: Read-only property. Returns the last cursor hovered element before triggering the event.
Syntax:
window.event.fromElement