 |
 |
Get image size
To get the size of an image, just use width and height properties :
<script type="text/javascript">
function getDim(ID)
{
myImage = document.getElementById(ID)
alert(ID + " width : " + myImage.width + "px\n"+ ID +" height : " + myImage.height + "px")
}
</script>
|
Click the button below to see the result :

| Comment no. 1 |
abc
From 163Öá³ÐÍø Date 15/05/50 Time 00.05 [222.46.18.34]
|
|
 |