Javascript examples for DOM Event:onmouseout
Handle mouse out and over event on <h1>
<html> <head> <title>lala</title> </head> <body> <h1 onmouseover="go('The dog is in its shed')" onmouseout="blah()">lalala</h1> <div id="goy"></div> <script type="text/javascript"> function go(what) {/*from ww w. j a v a 2s. c o m*/ document.getElementById("goy").innerHTML = what; } function blah() { document.getElementById("goy").innerHTML = ""; } </script> </body> </html>