Event from Element : Event Properties : Event onMethod JAVASCRIPT DHTML TUTORIALS


JAVASCRIPT DHTML TUTORIALS » Event onMethod » Event Properties »

 

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>

    
      
      



-

Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .

Follow Navioo On Twitter

JAVASCRIPT DHTML TUTORIALS

 Navioo Event onMethod
» Event Properties