mirror of
https://github.com/classilla/tenfourfox.git
synced 2024-09-07 06:54:33 +00:00
11 lines
213 B
HTML
11 lines
213 B
HTML
<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>
|