The moose likes HTML, CSS and JavaScript and the fly likes href kind link without underlink Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "href kind link without underlink" Watch "href kind link without underlink" New topic

href kind link without underlink

FY Hsieh
Ranch Hand

Joined: Aug 07, 2006
Posts: 73
click me

This displays a underline under the text. How do I remove the underline and when I click on the text it still invokes the javascript function ?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63851

Use css to set text-decoration to none.

[Asking smart questions] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385

I agree. Here's the link:
subject: href kind link without underlink
It's not a secret anymore!