<script>
function unloadHandler()
{
    var element = parent.document.getElementById("element");
    element.setAttribute("style", "height: 100px");
    element.offsetTop;
}
</script>
<body onunload="unloadHandler()">
This is frame D.
