IE无菜单栏标题栏、工具栏、全屏显示
来源:互联网 发布:算法的发展方向 编辑:程序博客网 时间:2024/05/27 09:47
- <!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>
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
- <title>IE无菜单栏全屏显示</title>
- </head>
- <SCRIPT language="JavaScript">
- function toFull(){
- if(window.name=="fullscreen")return;
- var a =window.open("","fullscreen","fullscreen=yes")
- a.location = window.location.href
- window.opener=null
- window.close()
- }
-
- </SCRIPT>
-
- <body onload=" toFull() ">
-
- <input type=button value=关闭 onclick=window.close()>
-
- </body>
-
- </html>