On this page, where the the style of the little red square is declared as the style attribute of the DIV, the alert that pops up correctly displays the "top" attribute of the DIV's DOM object. However, when the style is declared as a #style the alert is empty. What am I doing wrong? contact me
<HTML><HEAD><TITLE></TITLE>
<SCRIPT LANGUAGE="JavaScript">
function init() {
	alert(document.all['menuFrameDiv'].style.top)
	}
</SCRIPT>

<STYLE TYPE="text/css">

</STYLE>

</HEAD><BODY onLoad="init()">

<DIV ID="menuFrameDiv" STYLE="position:absolute; left:50px; top:45px; width:30px; height:30px; clip:rect(0px 30px 30px 0px); background-color:red; layer-background-color:red;">
</DIV>

</BODY></HTML>
contact me