<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>