normalize-event
Version:
A function that provides basic DOM Event support in IE8 and below.
24 lines (18 loc) • 398 B
Markdown
normalize-event is a function that provides basic DOM Event support in IE8 and below.
```
$ npm install normalize-event
```
``` js
var normalize = require('normalize-event')
document.body.onclick = function(e) {
e = normalize(e)
e.preventDefault()
e.stopPropagation()
alert(e.target)
}
```
[](http://opensource.org/licenses/MIT)