Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ddprrt/attacheventretrofill
:trollface: attachEvent Retrofill! Brings IE8- compatibility to your modern browser
https://github.com/ddprrt/attacheventretrofill
Last synced: 5 days ago
JSON representation
:trollface: attachEvent Retrofill! Brings IE8- compatibility to your modern browser
- Host: GitHub
- URL: https://github.com/ddprrt/attacheventretrofill
- Owner: ddprrt
- Created: 2015-05-09T11:06:19.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-09T11:19:26.000Z (over 9 years ago)
- Last Synced: 2024-04-15T22:37:43.751Z (9 months ago)
- Language: JavaScript
- Homepage:
- Size: 129 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
attachEvent Retrofill
=====================Relieve old memories and install the `attachEvent` retrofill!
With IE gone and Edge coming up, Microsoft will remove all those [features we loved to hate](https://blogs.windows.com/msedgedev/2015/05/06/a-break-from-the-past-part-2-saying-goodbye-to-activex-vbscript-attachevent/) and stick completely on web standards.
This makes all your `addEvent` wrapper functions [of old](http://jsfiddle.net/desandro/HFffq/) totally obsolete. Don't let that happen and install the `attachEvent` retrofill now! :smiley_cat:
## Compatibility
* IE9+! Because the older one's already support it :metal:
* Other browsers!## Usage
Add this script to your site. Use it:
```javascript
window.attachEvent('onmousemove', function() {
alert('I will not let you close this tab');
});
```