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()就不能禁用地址栏,这跟版本有关。