在新窗口中打开网页,全屏,不要滚动条——window.open()
<html><head><title>father page</title><script type="text/javascript">function openWin(){ window.open ('son-page.html', 'son-page', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, resizable=no,location=n o, status=no, fullscreen=yes');/*参数解释: window.open()弹出新窗口的命令; 'son-page.html'弹出窗口的文件名; 'son-page'弹出窗口的名字(不是文件名),非必须,可用空''代替; height=100窗口高度; width=400窗口宽度; top=0窗口距离屏幕上方的象素值; left=0窗口距离屏幕左侧的象素值; toolbar=no是否显示工具栏,yes为显示; menubar=no 显示菜单栏 scrollbars=no显示滚动栏。 注意: :o 如果属性fullscreen=yes,则这个属性没 用,必须要设置son-page.html的<body scroll=no>,才有用! resizable=no是否允许改变窗口大小,yes为允许; location=no是否显示地址栏,yes为允许; status=no是否显示状态栏内的信息(通常是文件已经打开),yes为允许; fullscreen=yes是否全屏显示,no为不是。 :) 此属性会影响scrollbars属性。*/}</script></head>
<body>
Hello World!
<input type="button"value="openNewWind"><br>
</body>
</html>
页:
[1]