JavaScript Program to Change Text Color on Mouse Events

Write a JavaScript program to Change Text Color on Mouse Events.



Source Code
<html>
<head>
    <title>JavaScript Rollover text color change</title>
</head>
<body>
<p onmouseover="this.style.color='red'"  onmouseout="this.style.color='blue'">
Move the mouse over this text to change its color to red. Move the mouse away  to change the text color to blue.
</p>
</body>
</html>
Output