How to use javascript to monitor a change in a div value?
<p>I have a page with a countdown in a DIV with id ="count"</p>

<p>I would like to monitor this div value so, when it reaches 0, a alert pops up.</p>

<p>I've gono so far as </p>

<pre><code>if(parseInt(document.getElementById('count').innerHTML) &lt; 2){}
</code></pre>

<p>But I don't know how to "listen" for the div changes</p>

<p>Can anyone help me?</p>

<p>Btw: it needs to be in pure javascript, with no such things as jquery.</p>

<p>Update:</p>

<p>I have no say so in the original code. It's an external page and I'm trying to run this code at the address bar</p>
