Topic: how to get the height and width of the uploaded image using javascript
HI
I want to put client validations to image before submit form.
so i want to get the height and width of the images into javascript
Am using
var img = document.getElementById('imageid');
//or however you get a handle to the IMG
var width = img.clientWidth;
var height = img.clientHeight;
but its showing wrong dimentions.
can anybody help