window.open()不能溢出当前窗口

时间:2015-04-22 07:54:43

标签: javascript

window.open('','','width=1365,height=100,left=1365,top=0');

问题:新窗口无法溢出当前窗口........

1 个答案:

答案 0 :(得分:0)

使用此功能打开具有相同大小的父级

的弹出窗口
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;
}