Event from Element : Event Properties « Event « JavaScript DHTML






Event from Element

 
    
<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

1.Event qualifier
2.Event saveType
3.Event nextPage
4.Event repeat
5.Event return Value
6.Event pageY and pageX
7.Event screenY, screenX
8.Event offsetY and offsetY
9.Event 'layerY'
10.Event 'layerX'
11.Event 'propertyName'
12.Event screenX
13.Event 'target' Example
14.Event 'srcUrn' Example
15.Event source element
16.Event to Element
17.Event type
18.Event y and x Property
19.'contentOverflow' Example
20.'cancelBubble' Example
21.Get event Phase: CAPTURING,BUBBLING