首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > JavaScript >

window.open('MainFrame.htm' '' 'fullscreen'); 为

2013-01-11 
window.open('MainFrame.htm', '', ɿullscreen')为何还有标题栏本帖最后

window.open('MainFrame.htm', '', 'fullscreen'); 为何还有标题栏
本帖最后由 listenrainy 于 2012-12-21 11:12:09 编辑 html如下:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <script language="JavaScript" type="text/javascript">
        window.opener = null;
        window.top.opener = null;
        window.top.open('', '_self');
        window.top.close();
        //window.open("index.htm");
        //window.open('index.htm', 'mian', 'width="' + (screen.width - 10) + '",height="' + (screen.height - 20) + '",top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no,fullscreen=yes');
        window.open('MainFrame.htm', '', 'fullscreen');    </script>
</head>
<body>
</body>
</html>

[解决办法]
我记住是好像是IE8开始window.open()就不能禁用地址栏,这跟版本有关。

热点排行