javascript string length compare
<p>I want to check the size of the string entered in a text box.
what am I missing?</p>

<pre><code>var com = document.getElementById("comment").value;
if(com.lenght &lt;= 100){
 alert("good");
} else {
 alert("bad");
} 
</code></pre>
