IT Solutions
Search This Blog
Thursday, November 12, 2009
How to find width and height of an image using javascript
Using javascript we can get width and height of an image as follows.
var
newImg = new Image();
newImg.src = 'file://D:\image\img123.gif';
var
height= newImg.height;
var
width= newImg.width;
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment