how to set image height and width?
<p>i want one information how will we set constant image height and width using javascript means if we set height 50 and width 65 so only that much size image will insert if user start to insert more than condition one alert message will come iam write code but it not work  </p>

<pre><code> if((obj.FileUp.value.width&gt;67)&amp;&amp;(obj.FileUp.value.height&gt;380))
            {
            alert("Height of image should not be more than 67 And Width of image should not be more than 380");
               return false;
                //alert(obj.FileUp.width)

            }
</code></pre>
