summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/tabPrompts/openPromptOffTimeout.html
blob: 5dfd8cbeff794964d16e6b7bc0de880cb9edd93c (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!");
  }
});
</script>
</body>