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