wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes disable hyperlink 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 "disable hyperlink" Watch "disable hyperlink" New topic

disable hyperlink

bhuvan sundar
Ranch Hand

Joined: Mar 02, 2005
Posts: 104

Is there any way of dynamically enabling and disabling a hyperlink using javascript?

Can someone pls help me out? This is quite urgent.

Thanks in advance for the help...
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
This link disables all links on a page:


Basically you add onclick="return false" to the link to disable it.

bhuvan sundar
Ranch Hand

Joined: Mar 02, 2005
Posts: 104
Thank You Eric...That solved my problem
I agree. Here's the link: http://aspose.com/file-tools
subject: disable hyperlink
Similar Threads
help on html:link action
i to put hyperlink in javascript table
how to hide a hyper link
how to create hyperlink from java
focus for hyperlink