You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 2, 2025. It is now read-only.
<nav><a href="http://dev.opera.com/articles/view/mutation-observers-tutorial/">Return to article</a></nav>
</header>
<article>
<p>In this example, clicking the <b>Add a node</b> button adds another paragraph element node to the document tree. Open the developer console to see what each mutation record reports.</p>
<p><button>Add a node</button></p>
</article>
<div id="demo"></div>
<script>
(function(d){
var btn = d.querySelector('button'),
demo = d.getElementById('demo'),
clickhandler = function(){
var p, sentence = 'Lorem ipsum dolar sit amet consecutum.';