<html>
<head>
<script>
function getTotalHeight() {
var thisHeight = document.getElementById("theEnd").offsetTop;
return thisHeight;
}
function winResize() {
window.resizeTo(710,getTotalHeight()+180);
var top=((window.screen.availHeight-document.body.clientHeight)/2);
var left=((window.screen.availWidth-document.body.clientWidth)/2);
window.moveTo(left, top);
}
</script>
</head>
<body οnlοad="winResize();">
<hr />
<p>1....</p>
<hr />
<p>2....</p>
<hr />
<p>3....</p>
<hr />
<div id=theEnd style="position:relative" height="0"></div>
<body>
</html>
<head>
<script>
function getTotalHeight() {
var thisHeight = document.getElementById("theEnd").offsetTop;
return thisHeight;
}
function winResize() {
window.resizeTo(710,getTotalHeight()+180);
var top=((window.screen.availHeight-document.body.clientHeight)/2);
var left=((window.screen.availWidth-document.body.clientWidth)/2);
window.moveTo(left, top);
}
</script>
</head>
<body οnlοad="winResize();">
<hr />
<p>1....</p>
<hr />
<p>2....</p>
<hr />
<p>3....</p>
<hr />
<div id=theEnd style="position:relative" height="0"></div>
<body>
</html>