Skip to content

Instantly share code, notes, and snippets.



Created Aug 10, 2009
What would you like to do?
<!doctype html>
<html lang="en">
<script type="text/javascript" charset="utf-8">
document.addEventListener('resize', function() { throw 'resized!' }, false);
var event = document.createEvent('HTMLEvents');
event.initEvent('resize', true, false);
// should throw a "resized!" error. No longer does in FF > 3.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.