Hi, guys!

Though an experienced programmer, I'm a Javasript beginner!

The code below is not complete. I'm just trying to get the values, and afterward I'll use them to resize my image. Please help me find out why this code tests ok in Chrome but shows "undefined" values in IE.

<!doctype html>

<body style="color:white;" onload="Resize()">
<script>
function Resize()
{
var
im=document.getElementById("logo");

document.write ("doc size= ", document.width, " ", document.height);
document.write (" im size= ", im.width, " ", im.height);
document.write (" space= ", im.hspace, " ", im.vspace);
}
</script>

<img id="logo" src="Images/HomeSmall.gif" />

</body>