应该是window.open('','','left=200,top='+(document.body.clientHeight-300))
或者是window.open('','','left=200,top='+(document.documentElement.clientHeight-300))你的常量和变量没处理好。
或者是window.open('','','left=200,top='+(document.documentElement.clientHeight-300))你的常量和变量没处理好。
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');
}