This simple piece of code doens't work on IE 6:
<!-- <code> -->
<table height=100%>
<tr><td>
<div id=orig>X</div>
</td></tr></table>
<div id=move style="position:absolute">Y</div>
<script>
move.style.top = orig.offsetTop
alert(orig.offsetTop)
alert(move.offsetTop)
</script>
<!-- </code> -->
The 'X' and thy 'Y' should be displayed overlapped. What's wrong?
<!-- <code> -->
<table height=100%>
<tr><td>
<div id=orig>X</div>
</td></tr></table>
<div id=move style="position:absolute">Y</div>
<script>
move.style.top = orig.offsetTop
alert(orig.offsetTop)
alert(move.offsetTop)
</script>
<!-- </code> -->
The 'X' and thy 'Y' should be displayed overlapped. What's wrong?