title: Trigger JavaScript event if div innerText change
body: <p>I want to make an alert when a div's innerText changes:</p>
  <pre><code>myDiv.addEventListener(&quot;change&quot;, function() {
      if (myDiv.innerText != &quot;some text&quot;)
          alert('innerText has changed.');
  },false);
  </code></pre>
  <p>Does not work.</p>