var img = document.getElementById("myImageID"); var imgWidth = img.clientWidth; var imgHeight = img.clientHeight;