Code
Execute
<!DOCTYPE html> <html> <head> <title>Wikitechy onmousemove attribute</title> </head> <body> <p onmousemove="mouseMove(this)" onmouseout="mouseOut(this)"> Move mouse pointer to check onmousemove Event. <br>Learn to Code in Wikitechy. </p> <script> function mouseMove (obj) { obj.style.color = "red"; } function mouseOut (obj) { obj.style.color = "blue"; } </script> </body> </html>
Result