>1: で言われているように、ウィンドウサイズはユーザーに任せるべき、に同意。
が、しかしまあ、出来るかどうかで言えば、縦の増減分を強制的に補正すれば出来るかと。
<html>
<head>
<script type="text/javascript">
var defaultHeight;
function setSize(){
window.resizeTo(800,700);
defaultHeight = document.body.clientHeight;
if(!defaultHeight){
defaultHeight = window.outerHeight;
}
}
function forceSize(){
if(!defaultHeight){
return false;
}
currentHeight = document.body.clientHeight;
if(!currentHeight){
currentHeight = window.outerHeight;
}
hSpan = defaultHeight - currentHeight;
window.resizeBy(0, hSpan);
}
window.onload = setSize;
window.onresize = forceSize;
</script>
</head>
<body>
</body>
</html>