我使用以下js从原来的窗口弹出一个新窗口:
oWin = window.open("PServlet?module=LoginHandler","_blank",
"directories=no,location=no,menubar=no,resizable=yes,status=yes,titlebar=yes,toolbar=no",
false);正如你所看到的,我没有设置新窗口的大小或位置,但我的测试结果是,每次弹出窗口的大小都是从原始窗口的相同大小不规则显示的,有时是一半,有时是全屏或部分大小。
大家都知道什么是理性吗?如果我不改变JS,我怎么能让弹出窗口每次都全屏显示。
发布于 2011-10-17 22:49:47
http://www.javascript-coder.com/window-popup/javascript-window-open.phtml
function mypopup()
{
mywindow = window.open("http://www.javascript-coder.com", "mywindow", "location=1,status=1,scrollbars=1, width=100,height=100");
mywindow.moveTo(0, 0);
}有关全屏信息,请查看此处:http://javascript-array.com/scripts/window_open/
function popup(url)
{
params = 'width='+screen.width;
params += ', height='+screen.height;
params += ', top=0, left=0'
params += ', fullscreen=yes';
newwin=window.open(url,'windowname4', params);
if (window.focus) {newwin.focus()}
return false;
}https://stackoverflow.com/questions/7795438
复制相似问题