mirror of
https://github.com/NohamR/Stream.git
synced 2026-05-08 04:17:13 +00:00
broken linls
This commit is contained in:
18
test/child-frame.html
Normal file
18
test/child-frame.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Child Frame</title>
|
||||
<script>
|
||||
window.addEventListener("beforeunload", (event) => {
|
||||
console.log("I am the 2nd one.");
|
||||
});
|
||||
window.addEventListener("unload", (event) => {
|
||||
console.log("I am the 4th and last one…");
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
☻
|
||||
</body>
|
||||
</html>
|
||||
18
test/index.html
Normal file
18
test/index.html
Normal file
@@ -0,0 +1,18 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<title>Parent Frame</title>
|
||||
<script>
|
||||
window.addEventListener("beforeunload", (event) => {
|
||||
console.log("I am the 1st one.");
|
||||
});
|
||||
window.addEventListener("unload", (event) => {
|
||||
console.log("I am the 3rd one.");
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe src="child-frame.html"></iframe>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user