Internet Explorer innerHTML "Object doesn't support this property or method"
<p>I have a script that checks the value of a Div Id.</p>

<pre><code>   &lt;div id="hour" style="display:none;"&gt;2&lt;/div&gt;
   &lt;div id="min" style="display:none;"&gt;1&lt;/div&gt;
   &lt;div id="sec" style="display:none;"&gt;3&lt;/div&gt;

   hour = document.getElementById("hour").innerHTML;
   min = document.getElementById("min").innerHTML;
   sec = document.getElementById("sec").innerHTML;
</code></pre>

<p>Works in Chrome, but not in Internet Explorer (Which is where I need it to work)</p>

<p>It gives me the error, "Object doesn't support this property or method"</p>

<p>What is the easier way (preferably one line) to get around this?</p>
