JavaScript HyperLink Rollover effect to change the text color onmouseover functionality can be created by using JavaScript DOM methods and onmouseover event of HTML anchor a tag. You can call the JavaScript functions for changing the color onmouseover and onmouseout events. In this sample we have used to types of methods to change the font color of Hyperlink text.
1. inline method using JavaScript "this" object that acts as "document.getElementById" object reference.
2. javascript function that accepts 2 parameters as "this" object reference and color code that is to be applied on text.
JavaScript DOM Features Used
1. this object
2. style object
3. color property
Try the sample below to learn and practice the JavaScript DOM code for developing this functionality: