netsurf/test/js/dom-change-event.html

18 lines
389 B
HTML
Raw Normal View History

2017-02-05 14:27:56 +03:00
<html>
<head>
<title>DOM Change event handling</title>
<script type="text/javascript">
document.addEventListener("DOMNodeInserted",
function(ev) {
console.log("\n\nHELLO WORLD!\n\n");
console.log(ev);
console.log("\n\n");
}, false);
console.log("Moooo!");
</script>
</head>
<body>
<div>I got inserted</div>
</body>
</html>