首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Web前端 >

重复提交 禁止接续点击同一链接

2012-11-22 
重复提交禁止连续点击同一链接?a href http://www.google.com onclick window.open(this.href)doc

重复提交 禁止连续点击同一链接

?<a href= "http://www.google.com " onclick= "window.open(this.href);document.getElementsByTagName('a')[0].href = 'javascript:void(0)';"> 链接1 </a>

链接disabled =true只显示禁用的效果,但任然可以点<a href="http://www.google.cn" onclick="var that = this; setTimeout(function(){that.href = '###'; that.target=''; that.onclick=function(){ return false; }; });" target="_blank">Open Google in New Window</a>

热点排行