blob: 6989260cc78fc5313a92167ce319da8da8bb1063 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!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>
|