1
0
Fork 0
firefox/dom/html/test/file_broadcast_load.html
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

16 lines
389 B
HTML

<!DOCTYPE html>
<h1>file_broadcast_load.html</h1>
<script>
let channel = new BroadcastChannel("test");
channel.onmessage = function(e) {
console.log("file_broadcast_load.html got message:", e.data);
if (e.data == "close") {
window.close();
}
};
addEventListener("load", function() {
console.log("file_broadcast_load.html loaded");
channel.postMessage("load");
});
</script>