Array.length problem in JavaScript
<p>I've written this sample code to print the length of x. But for some reason, I am not getting anything! Help! </p>

<pre><code>&lt;html&gt;
&lt;head&gt;
&lt;script type = "text/javascript"&gt;
function myF()
{
   var x = [1,2,3,4];
   var y = document.getElementById("thing");
   y.innerHtml = x.length;
}
&lt;/script&gt;
&lt;/head&gt;

&lt;body onload = "myF();" &gt;

&lt;div id = "thing" &gt;
PRINT TEST
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
