<body onload="window.open('ManagerSet.aspx','','location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=no,toolbar=no,directories=no')">
想实现打开一个页面,不显示状态栏,菜单栏,工具栏
但是这样写的话,会一直重复弹页面!
'ManagerSet.aspx'这个名字就是我当前页的名字
有什么好的解决办法!
想实现打开一个页面,不显示状态栏,菜单栏,工具栏
但是这样写的话,会一直重复弹页面!
'ManagerSet.aspx'这个名字就是我当前页的名字
有什么好的解决办法!
<html>
<script language="JavaScript">
function OpenNewAndColseParent( url,newwindowname, top,left,status,width,height)
{
//window.open(url,newwindowname,"top="+top+",left="+left+",toolbar=no,location=no, directories=no,status="+status+",menubar=no,scrollbars=no,resizable=yes, width="+(screen.width-width)+",height="+(screen.availheight-height));
window.open(url,newwindowname,"top="+top+",left="+left+",toolbar=no,location=no, directories=no,status="+status+",menubar=no,scrollbars=no,resizable=yes, width="+(screen.availWidth - width)+",height="+(screen.availHeight - height));
window.opener = null;
window.close();
} </script>
<body onload="javascript:OpenNewAndColseParent('login.aspx','LogoWindow',0,0,'yes',10,60)">
<FONT face="宋体"></FONT>
</body>
</html>
我自己写了一个,但是呢会不停的弹出全屏页面:如下
function name()
{
var b=window.open("","","fullscreen=no")
b.location=window.location.href
b.moveTo(-4,-4)
b.resizeTo(screen.availWidth+8,screen.availHeight+8)
window.opener=null;
window.close()
}
然后呢在<body onload="name()"></body>