jeffcullina
Programmer
I have a hyperlink set up as follows:
<a href="NewPage" class="Blue">New Page</a>
I would like for the link to go to a javascript function while maintaining the style of the hyperlink (color and mouseover properties. I tried:
<b style="Blue" onclick="fun()">New Page</b>
This does go to the javascript function, but it does not keep the Blue formatting. I also tried replacing STYLE with CLASS, but CLASS is not an attribute of <b>. Do I have to redefine my Blue formatting as a STYLE rather than a CLASS? If I do, will I be able to keep my rollover formatting? Is there a better way to go about all of this?
<a href="NewPage" class="Blue">New Page</a>
I would like for the link to go to a javascript function while maintaining the style of the hyperlink (color and mouseover properties. I tried:
<b style="Blue" onclick="fun()">New Page</b>
This does go to the javascript function, but it does not keep the Blue formatting. I also tried replacing STYLE with CLASS, but CLASS is not an attribute of <b>. Do I have to redefine my Blue formatting as a STYLE rather than a CLASS? If I do, will I be able to keep my rollover formatting? Is there a better way to go about all of this?