I have the following HTML and you want to disable the link using javascript.
<a style="white-space: nowrap;" onclick="return InstallWebApp(true);" id="uc_ii_lnkInstall" href="javascript:__doPostBack('uc_ii$lnkInstall','')">
<img style="border-width: 0pt; margin-right: 3px;" id="uc_ii_lnkInstallImg" alt="Install" title="Install" src="/CortexDotNet/pics/buttons/install_g.gif">
Install
</a>
I am using JavaScript:
document.getElementById("uc_ii_lnkInstall").disabled = true;
However, this will not work, I could still click on this link after I disabled the link using the javascript above. I am looking at html, it does not have the disable attribute in the tag. help me explain this please?
source
share