function windowopen() | 定义一个函数。 |
{ var target="https://www.gdjyw.com" | 设置一个字符串。 |
newwindow=window.open("",""," scrollbars") | 打开一个新窗口。 |
if (document.all) { newwindow.moveTo(0,0) | 新窗口从(0,0)位置开始显示。 |
newwindow.resizeTo (screen.width,screen.height) } | 新窗口的尺寸是整个屏幕的宽,整个屏幕的高。 |
| newwindow.location=target | 显示target指定的链接地址。 |
| <input type="button" onClick="windowopen()" value="全屏显示" name="button"> | 插入一个按钮,击它的时候调用windowopen()函数。 |