Tag Archives: DHTML Change Text On Mouse Over

Change Text On Mouse Over

Change Text On Mouse Over <html> <head> <script> function nameon() { document.getElementById(‘h2text’).innerHTML=”WELCOME!”; } function nameout() { document.getElementById(‘h2text’).innerHTML=”How are you today?”; } </script> </head> <body> <h2 onmouseout=”nameout()” onmouseover=”nameon()” ┬áid=”h2text”> Mouse over this text!</h2> </body> </html> Mouse over this text!