应该是window.open('','','left=200,top='+(document.body.clientHeight-300))
或者是window.open('','','left=200,top='+(document.documentElement.clientHeight-300))你的常量和变量没处理好。

解决方案 »

  1.   

    <a href="#" onclick="window.open('http://www.baidu.com','','width=400,height=300,top='+document.documentElement.clientHeight+300+',left=0')">百度</a> //下面的函数是再页面中心window.open
       function WinOpen(url,width,height)
        {
            var left = ( screen.width - width ) / 2;
            var top = ( screen.height - height ) / 2;
            window.open(url,'','width='+width+',height='+height+',top='+top+',left='+left+',scrollbars=0,resizable=0');
        }