body와 body 사이에 넣습니다.
<script>
function winCenter() {
if (document.layers) { var x = screen.width / 2 - outerWidth / 2; var y = screen.height / 2 - outerHeight / 2; }
else { var x = screen.width / 2 - document.body.offsetWidth / 2; var y = -15 + screen.height / 2 - document.body.offsetHeight / 2; }
window.top.moveTo(x, y);}
winCenter()
</script>
블로그