quangthang2004 Posted December 11, 2011 Share Posted December 11, 2011 Dear all, I am stricking into a prolem. The prolem is I can get exact height and width value from Image that I insert instance in the web. Sometime it returns value 0 or achieve precise height and width value. what should I do or create a function to obtain actual height and width value Thanks in advance Link to comment Share on other sites More sharing options...
Ingolme Posted December 11, 2011 Share Posted December 11, 2011 It only returns the proper value after it has loaded. So you could check the size of the image using the onload event. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.