'fromElement' Example : fromElement « Javascript Properties « JavaScript Reference
- JavaScript Reference
- Javascript Properties
- fromElement
'fromElement' Example
<html>
<head>
<script>
function function1() {
alert(event.fromElement.innerText);
}
</script>
</head>
<body><table border="1">
<table>
<tr><td onmouseover="function1();">CELL 1</td></tr>
<tr><td onmouseover="function1();">CELL 2</td></tr>
<tr><td onmouseover="function1();">CELL 3</td></tr>
</table>
</body>
</html>
Related examples in the same category