I want to validate the dimension of the uploading image. The dimension must be 289x66. Please find below my code.
var img = new Image(); img.src=documen t.forms[0].btnUploadLogo. value;
//btnUploadLogo is input file button ID...
if (img.width != 289 || img.height != 66)
{
// Error Message or Alert
}
But i am getting width and height as 0 and 0. I am using IE 7.0.
Thank in advance
var img = new Image(); img.src=documen t.forms[0].btnUploadLogo. value;
//btnUploadLogo is input file button ID...
if (img.width != 289 || img.height != 66)
{
// Error Message or Alert
}
But i am getting width and height as 0 and 0. I am using IE 7.0.
Thank in advance
Comment