运行代码 缩小
汉王
HTML代码
复制 格式化 注释 注释 清空
放大
AخA
 
1
第一种方法:用 window.open实现<br>
2
window.open("/", "手册网","toolbar=no,location=no,directories=no,menubar=no,
3
scrollbars=no,resizable=yes,status=no,top=0,left=0")
4
<br>
5
<br>
6
第二种方法:打开一个全屏的页面<br>
7
window.open("/index.html", "", "fullscreen=yes")
CSS代码
复制 格式化 注释 注释 颜色 清空
放大
CSS代码...
x
 
1
JS代码
复制 格式化 注释 注释 清空
放大
JS代码...
xxxxxxxxxx
1
 
1
名称
JS弹出无工具栏全屏窗口的方法
分类
网站常用
描述
JS打开无边框、无标题栏全屏窗口的方法,一种方法:用 window.open 的方法屏蔽掉IE的所有菜单,另一种方法是使用window.open的全屏属性。两种方法实现的效果几乎是一样的。
收藏