我用 window.open 方法打开一个小窗口,如何能让这个小窗口的弹出位置在屏幕上居中位置?
如下:
function parentsendtochild(no, uid)
{
window.open("ParentSendToChild.aspx?id=" + no + "&uid="+uid,'','width=750,height=570, toolbar=no,menubar=no,scrollbars=yes, resizable=no,location=no, status=yes');
}
我用这种方法弹出一个width=750,height=570 的窗口,可是现在这个窗口是在屏幕左上角的,不是出现在屏幕正中间,要怎么处理才能达到我要的效果呢?
请各位帮忙,不胜感激! 谢谢!