Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<html>
<head>
<script>
function init()
{
document.addEventListener("DOMNodeRemoved", meep);
document.body.appendChild(document.getElementById("b"));
function meep()
{
document.removeEventListener("DOMNodeRemoved", meep);
document.body.removeChild(document.getElementById("c"));
}
}
window.addEventListener("load", init);
</script>
</head>
<body><div id="b"></div><div id="c"></div></body>
</html>