File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

disable hyperlink

 
bhuvan sundar
Ranch Hand
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 104
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You Eric...That solved my problem
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic