Disable Image/Hyperlink

Results 1 to 2 of 2

Thread: Disable Image/Hyperlink

  1. #1
    Join Date
    Dec 1969

    Default Disable Image/Hyperlink

    I have an image that is hyperlinked.<BR><BR>I want to be able to dynamically enable/disable the image and/or the<BR>hyperlink attached according to certain conditions.<BR><BR>Is there any way to do this with in inline statement apart from wrapping<BR>code around the HTML, eg<BR><BR>disabled="on" or<BR>unselectable="on"<BR><BR>both of which do not work for an image.<BR><BR>Obviously, the best solution would be to have a "visible" attribute which<BR>could be set, as all programming languages have, but this does not seem to<BR>be an option in scripting/html.<BR><BR>Any ideas would be most welcome!!<BR><BR>Cheers<BR>Dave

  2. #2
    Join Date
    Dec 1969

    Default RE: Disable Image/Hyperlink

    you want to do this client-side? (in which case it&#039;s not an ASP question)<BR><BR>change the &#039;href&#039; attribute to &#039;#&#039; with javascript.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts