dette virker:
<html>
<head>
<script type="text/javascript" language="JavaScript">
function moveCopyrightInfo() {
var elm = document.getElementById('idCopyright');
elm.style.display = 'block';
var heightToUse = (document.body.scrollHeight < document.body.offsetHeight) ? document.body.offsetHeight : document.body.scrollHeight;
var newY = heightToUse - elm.offsetHeight - 20;
var newX = document.body.scrollWidth - elm.offsetWidth - 20;
elm.style.pixelTop = newY;
elm.style.pixelLeft = newX;
}
onload="moveCopyrightInfo()"
onresize="moveCopyrightInfo()"
</script>
</head>
<body style="margin:0px">
<div style="width:100%; height:100; background-color: silver; padding:20px">Denne div repræsenterer selve siden</div>
<div id="idCopyright" style="display:none;position:absolute;top:0px;left:0px;background-color:red;color:white; padding:5px;">FOOTER</div>
</body>
</html>
taget fra:
http://www.eksperten.dk/spm/360548