Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<div>
<ol contenteditable oninput="">
  <li>Press enter</li>
</ol>
</div>
<script>
  var MutationObserver = window.MutationObserver || window.WebKitMutationObserver || window.MozMutationObserver;
  
  
  var observer = new MutationObserver(function(mutations) {  
    mutations.forEach(function(mutation) {
        console.log(mutation.target.nodeName);
    });
  });
  
  observer.observe(document, {
    attributes: true, 
    childList: true, 
    characterData: true
  });
</script>
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers