Skip to content

Instantly share code, notes, and snippets.

@tobie

tobie/gist:165294

Created Aug 10, 2009
Embed
What would you like to do?
<!doctype html>
<html lang="en">
<head>
<script type="text/javascript" charset="utf-8">
document.addEventListener('resize', function() { throw 'resized!' }, false);
var event = document.createEvent('HTMLEvents');
event.initEvent('resize', true, false);
document.documentElement.dispatchEvent(event);
// should throw a "resized!" error. No longer does in FF > 3.5
// https://bugzilla.mozilla.org/show_bug.cgi?id=503244
</script>
</head>
<body></body>
</html>
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.