怎样"取消"或"禁止"点击超级链接 怎样"取消"或"禁止"点击超级链接 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 obj = document.getElementById("a_id");obj.href = "";orobj.href = "javascript:void(0);"; <a href="#" id="a1" onclick="alert('ddddd');document.location.href='http://www.baidu.com'">asdasdasd</a><input name="button1" type="button" value="禁止" onclick="document.getElementById('a1').onclick=null;document.getElementById('a1').href='javascript:void(0)'"><input name="button1" type="button" value="不禁止" onclick="document.getElementById('a1').onclick=function(){alert('aaa');document.location.href='http://www.baidu.com';document.getElementById('a1').href='#'}"> 弹出提交处理,急在线等 想在文档先显示文字,3秒后,再刷新显示另一个文字。 请高手帮助:如何移动FLASH标题的位置? 求替换内容中的部分格式的方法,在线等待! 字符串分割存入字符数组 双击单元格,如何让单元格里的文字不被选中? javascript得到鼠标坐标的问题 100分请教,在线等,解决马上结贴!!!!第三次发问,没办法了? 关于窗口最大化的问题 js实现音频压缩与解压缩 onClick時件能否用在html的<a>中? 簡單問題!.
obj.href = "";
or
obj.href = "javascript:void(0);";
<input name="button1" type="button" value="禁止" onclick="document.getElementById('a1').onclick=null;document.getElementById('a1').href='javascript:void(0)'">
<input name="button1" type="button" value="不禁止" onclick="document.getElementById('a1').onclick=function(){alert('aaa');document.location.href='http://www.baidu.com';document.getElementById('a1').href='#'}">