Skip to content

Instantly share code, notes, and snippets.

@cgiffard
Created September 24, 2012 10:22
Show Gist options
  • Save cgiffard/3775343 to your computer and use it in GitHub Desktop.
Save cgiffard/3775343 to your computer and use it in GitHub Desktop.
Don't have a copy of IE8 available to me right now. Can anybody tell me whether this will work?
(window.attachEvent||window.addEventListener)("load",function() {
// Event listener code in here
alert("will this fire in IE8?");
},false);
@Ultrabenosaurus
Copy link

Chrome 21.0.1180.89 - works
Opera 12.00.1467 - works
IE 9.0.8112.16421 - doesn't work
IE 8.0.6001.18702 - doesn't work
FireFox 13.0 - works
FireFox 3.6.28 - works
Safari 5.1.7 - works

All on Windows 7 except IE 8 which is on Windows XP

@Ultrabenosaurus
Copy link

This is the file I used to test: https://dl.dropbox.com/u/106619613/gist_3775343.html

@cgiffard
Copy link
Author

Hrm - for some reason I didn't get notified that you'd commented on my gist. Thanks for your help anyway!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment