1var img = new Image();
2img.onload = function() {
3 alert(this.width + 'x' + this.height);
4}
5img.src = 'http://www.google.com/intl/en_ALL/images/logo.gif';
1var img = document.getElementById("myImageID");
2var imgWidth = img.clientWidth;
3var imgHeight = img.clientHeight;