如何让超链接的 href属性失效

xiaoxiao2024-10-28  14

<a href="http://www.google.cn" onclick="return myclick();">链接到谷歌</a><script type="text/javascript"> function myclick(){ alert('呵呵,我失效了吗?'); return false; }</script> <a href="http://www.sina.com" id="mylink">连接</a> <input type=button value="dian" ID=Button1 onclick="document.links('mylink').outerHTML='连接';"><a href="http://www.sina.com" id="mylink">连接</a> <input type=button value="dian" ID=Button1 onclick="document.links('mylink').disabled=!document.links('mylink').disabled;">
转载请注明原文地址: https://www.6miu.com/read-5018712.html

最新回复(0)