find Image correct width and height
Posted
by Jeny
on Stack Overflow
See other posts from Stack Overflow
or by Jeny
Published on 2010-06-09T07:17:44Z
Indexed on
2010/06/09
7:22 UTC
Read the original article
Hit count: 158
JavaScript
now i get the image's width and height when onload function of img . my problem is, the image original width = 500px but document.getElementId(id).offsetWidth gives only 300px and also for height. Please help me how can i get original width and height of image
© Stack Overflow or respective owner