<script> function myOnMouseOver() { alert('Hello, world!'); } </script> <frameset cols="*,*"> <frame onMouseOver="myOnMouseOver()" name="Menu"> <frame onMouseOver="myOnMouseOver()" name="Main"> </frameset>