This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 60741

Use css to set text-decoration to none.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376

I agree. Here's the link:
subject: href kind link without underlink
Similar Threads
one small question
Rich Text Editor
Remove the underline from the links
dotted underline for a desired substring in JTextpane/JEditorPane
how to underline text ?