Original Post
🔒 Locked
[web] disabling a hyperlink
Advertisement
You could swap out two entire divs/spans based on that event. The 'normal' one would include a hyperlink, and the post-click one would be standard text.
I dont know if you can disable a hyperlink, however you can hide a DIV. If you created two divs at the same location, one containing a hyperlink and one containing a standard piece of text, you could then swap between the two.
javascript show/hide layer sample code</a></a>
javascript show/hide layer sample code</a></a>
Something like this?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><title>TEST</title><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><script type="text/javascript">function updateLink(srcCheckbox, linkId){ var theLink = document.getElementById(linkId); if (theLink) { if (srcCheckbox.checked) theLink.style.visibility = 'visible'; else theLink.style.visibility = 'hidden'; }};</script></head><body><input type="checkbox" name="myCheckbox" onclick="updateLink(this, 'myLink');" checked /> Click me!</body></html>Topic Locked
This topic has been locked by a moderator. New replies are not allowed.
Sign in to reply to this topic.
Advertisement