以下のコードは Firefox では機能しますが、IE と Chrome では機能しません。ウィンドウのサイズ(高さと幅)も変更しました。しかし、他のブラウザでは変化はありません。FireFoxでのみ正常に動作しています。
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="expires" content="Fri, 30 Dec 2005 12:00:00 GMT" />
<meta http-equiv="cache-control" content="no-cache" />
<title>RSI Q</title>
<script>
function OpenNewWindow()
{
var WindowWidth=250;
var WindowHeight=400;
// calculate x-distance
var PageWidth = screen.width;
var xDistance = parseInt(PageWidth) - parseInt(WindowWidth);
// calculate y-distance
var PageHeight = screen.height;
var yDistance = parseInt(PageHeight) - parseInt(WindowHeight);
window.open('mypopuppage.php', 'MyPopup', 'fullscreen=0,width='+WindowWidth+',height='+WindowHeight+',resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,top='+yDistance+',left='+xDistance);
}
</script>
</head>
<body onload="OpenNewWindow();">
</body>
</html>
IE は幅が拡張されており、chrome は高さと幅の両方が台無しになっています。FFは好調です。http://i50.tinypic.com/2yvnlae.jpgここでは、ブラウザごとのウィンドウのサイズの違いを確認できます