mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-03 13:51:46 +03:00
Add dom change event test
This commit is contained in:
parent
8e9751d3b6
commit
57fec3504f
17
test/js/dom-change-event.html
Normal file
17
test/js/dom-change-event.html
Normal file
@ -0,0 +1,17 @@
|
||||
<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>
|
@ -90,6 +90,7 @@
|
||||
<li><a href="event-onload.html">window.onload</a></li>
|
||||
<li><a href="event-onloadfrombody.html">body.onload</a></li>
|
||||
<li><a href="event-onclick.html">button.onclick</a></li>
|
||||
<li><a href="dom-change-event.html">DOMNodeInserted</a></li>
|
||||
</ul>
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user