File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of Spring in Action this week in the Spring 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