禁用页面<a href>

just posted @ 2008年12月20日 20:50 in web , 1157 阅读

 

function disableHref(){
    for(i=0;i<document.all.tags("A").length;i++){
        document.all.tags("A")[i].shuxing=document.all.tags("A")[i].href;
        document.all.tags("A")[i].removeAttribute("href")
        }
    }
  • 无匹配
  • 无匹配

登录 *


loading captcha image...
(输入验证码)
or Ctrl+Enter