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
Author

disable hyperlink

bhuvan sundar
Ranch Hand

Joined: Mar 02, 2005
Posts: 104
Hi

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
author
Rancher

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

http://radio.javaranch.com/pascarello/2005/05/17/1116355421179.html

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

Eric
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