Discussion in 'JavaScript' started by hovesh07, Nov 7, 2009.
Hi All, If I have a CSS class, how do I use JS to change the color of "a" or "a:hover"? Thanks!
a:hover { color: #color; } Code (markup): No js required.
a:hover { color: #color; }
you can use onmouseover and onmouseout events to do it instead of using hover styles.
Separate names with a comma.