Franklin P Patchey wrote on 09 nov 2003 in comp.lang.javascript:
How do I stop this from underlining the "Close this window" text?
<P><A style="COLOR: rgb(0,0,0); FONT-SIZE: 80%; FONT-FAMILY: 'Comic
Sans MS', cursive; TEXT-ALIGN: left"
href="javascript:self.close();"><FONT size=4><STRONG>Close this
window!</STRONG></FONT></A></P>
This question is not very javascript related, so OT.
=======================
Do not use css font-size and Font declaration together:
Add as style element text-decoration:none;
Use an onclick declaration.
The cursive does not work there.
========
<a style="color:#000;font-size:80%;font-family:'Comic Sans MS';
font-style:italic;font-weight:800;text-align:left;text-decoration:none;"
href="#" onclick="self.close();">
Close this window!
</a>
========
Much better (IMHO) is to use a css declaration list
[I added a hover bgcol.]
========
<style>
a.closeit {
color:#000;font-size:80%;
background-color:transparent;
font-family:'Comic Sans MS';
font-weight:800;font-style:italic;
text-align:left;
text-decoration:none;
}
a:hover.closeit {
background-color:#fe0;
}
</style>
<a class="closeit"
href="#" onclick="self.close();">
Close this window!
</a>
=========