summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/general/close_beforeunload.html
blob: 4b62002cc4a046cedb357c48d7d634d8daf3724f (plain)
1
2
3
4
5
6
7
8
<body>
  <p>I will close myself if you close me.</p>
  <script>
    window.onbeforeunload = function() {
      window.close();
    };
  </script>
</body>