防止发生浏览器默认的行为的通用函数
时间:2010-09-29 来源:.小贺
小贺
  function stopDefault( e ){
    //防止默认浏览器行为(W3C)
    if( e && e.preventDefault )
    e.preventDefault();  
     //IE 中阻止浏览器行为的捷径
    else
     window.event.returnValue = false;
    
      return false;
}
   相关阅读 更多 + 
    
  









