mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-20 11:12:46 +03:00
18 lines
389 B
HTML
18 lines
389 B
HTML
|
<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>
|