blob: bcc1f462ed7961476fef3a4a52f2ed9a5a5ebf1d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<html>
<head>
<script>
function init()
{
document.addEventListener("DOMNodeRemoved", meep, false);
document.body.appendChild(document.getElementById("b"));
function meep()
{
document.removeEventListener("DOMNodeRemoved", meep, false);
document.body.removeChild(document.getElementById("c"));
}
}
window.addEventListener("load", init, false);
</script>
</head>
<body><div id="b"></div><div id="c"></div></body>
</html>
|