This program is placed between <body> and </body>.
<Script>
<! --
Function windowopen (){
Var target = "http://play.zol.com.cn"
Newwindow = window. open ("", "", "scrollbars ")
If (document. all ){
Newwindow. moveTo (0, 0)
Newwindow. resizeTo (screen. width, screen. height)
}
Newwindow. location = target
}
// -->
</Script>
<Form>
<Input type = "button" on Click= "Windowopen ()" value = "full screen display" name = "button">
</Form> program description:
| Function windowopen () |
Define a function. |
| {Var Destination = "http://zhoucaiqi.51.net" |
Set a string. |
Newwindow = window. open ("",""," Scrollbars ") |
Open a new window. |
If (document. all) {Newwindow. moveTo (0, 0) |
The new window is displayed at (0, 0. |
Newwindow. resizeTo (Screen. width, screen. height )} |
The size of the new window is the width of the screen and the height of the screen. |
| Newwindow. location = target |
The link address specified by target is displayed. |
| <Input type = "button" onClick = "windowopen ()" value = "full screen display" name = "button"> |