sai
sai

Reputation: 11

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

I want to stop event firing using JavaScript in the IE. Can anyone tell me how I can do this implementation?

Upvotes: 1

Views: 608

Answers (1)

Blender
Blender

Reputation: 298532

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

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

Upvotes: 1

Related Questions