aspose file tools*
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
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
 
 
subject: disable hyperlink