Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Width & Hieght

Status
Not open for further replies.

mayfair

Programmer
Jun 29, 2001
12
US
Is there any function that will allow me to get the width and hieght of a image I want to draw?
 
There is no build in function but you can make one as follows:

function ImgHtWd(imageName)
{
var imgHeight=document.formname.imageName.height;
var imgWidth=document.formname.imageName.width;
alert(imgHeight,imgWidth)
}

;-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top