tobie (owner)

Revisions

gist: 165294 Download_button fork
public
Public Clone URL: git://gist.github.com/165294.git
Embed All Files: show embed
HTML #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<!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>