开发者

How to stop event firing in IE (internet explorer) using JavaScript

开发者 https://www.devze.com 2023-03-08 03:27 出处:网络
I want to stop event firing using JavaScript in the IE. Can anyone tell me how I can do开发者_如何学C this implementation?Usually you stop an event from firing by preventing its default and returning

I want to stop event firing using JavaScript in the IE. Can anyone tell me how I can do开发者_如何学C this implementation?


Usually you stop an event from firing by preventing its default and returning false:

foo.onSomeEvent = function(e) {
  e.preventDefault();
  return false;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消