mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 02:05:42 +00:00
19 lines
456 B
HTML
19 lines
456 B
HTML
|
<!DOCTYPE html>
|
||
|
<html class="reftest-wait">
|
||
|
<head>
|
||
|
<script>
|
||
|
let f = document.createElement('frame');
|
||
|
f.onload = function() {
|
||
|
let frameDocument = f.contentDocument;
|
||
|
frameDocument.body.onbeforeunload = function () { frameDocument.write('<p>beforeUnload</p>') };
|
||
|
frameDocument.write('<p>trigger unload</p>')
|
||
|
window.stop();
|
||
|
document.documentElement.className = '';
|
||
|
};
|
||
|
document.documentElement.appendChild(f);
|
||
|
</script>
|
||
|
</head>
|
||
|
<body>
|
||
|
</body>
|
||
|
</html>
|