<script LANGUAGE="JavaScript">
<!--
function openwin() {
var new_w=window.open("http://www.baidu.com/", "信息", "height=450, width=450, top="+(window.screen.height-450)/2+", left="+(window.screen.width-450)/2+", toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no");
}
//-->
</script>
测试了一下1 楼 是正确的.
为什么 moveTo不行呢?
var h=600;//弹出窗口的高
var l=screen.width/2-w/2; //计算出来的居中的left
var t=screen.height/2-h/2; //计算出来的居中的top
再用window.open即可
window.open("GetImgSort.aspx","newwindow","left="+PageLeft+",scrollbars=yes,height=600,width=200,toolbar=no,menubar=no,location=no,scroll=yes");code]