Thursday, August 21, 2008

How to Remove Underline in Hyperlink

Despite being an IT person, I don't delve much into HTML until now because of my new job. So when I was doing a popup window and did buttons via hyperlink (I didn't know then that window.open can still be used via document.write), I was boggled with the underline.

To remove the hyperlink put style='text-decoration: none;' like so:

< a href="http://iamner.blogspot.com/" style="text-decoration: none;">
< value="Sample" type="button">
< /a>

Output:

Note: Codes supplied were intentionally given spaces in order to be read in this post.
Your Ad Here