summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/tabPrompts/openPromptOffTimeout.html
blob: e865c78720481ff5aba1346fcd2703cdd12618b6 (plain)
1
2
3
4
5
6
7
8
9
10
<body>
This page opens an alert box when the page is hidden.
<script>
document.addEventListener("visibilitychange", () => {
  if (document.hidden) {
    alert("You hid my page!");
  }
}, false);
</script>
</body>