首页 > 代码库 > 取消浏览器默认行为

取消浏览器默认行为

function stopDefault(e){
//W3C
if(e && e.preventDefault){
e.preventDefault();
}
//IE
else{
window.event.returnValue=http://www.mamicode.com/fale;>

 

取消浏览器默认行为