用来设定窗口的位置
Set the Window Position
There is another set of options you can use to set the position of the new window on the viewers, but it only works with NS4+ and IE4+:
- screenX=number in pixels
Sets the position of the window in pixels from the left of the screen in Netscape 4+. - screenY=number in pixels
Sets the position of the window in pixels from the top of the screen in Netscape 4+. - left=number in pixels
Sets the position of the window in pixels from the left of the screen in IE 4+. - top=number in pixels
Sets the position of the window in pixels from the top of the screen in IE 4+.
Great, but how do you decide which commands to use if there are different ones for each browser? In this case, you can use both sets of commands- the browser will ignore the set it does not recognize. The example below will give you a new window 0 pixels from the left and 100 pixels from the top of your screen: