features是特征的意思.它包含以下参数: height width top left toolbar menubar scrollbars resizable location status 你可以根据字面意思来理解这些参数的含义. replace的解释在HTML参考里面是这样写的: Optional. A boolean value specifying whether the URL that is loaded into the new page should create a new entry in the window's browsing history or replace the current entry in the browsing history. If true, no new history entry is created.
to: sandyuk(冰の沙隆) 你给的那些参数有一大部分是NS才支持的吧?呵呵. 我觉得现在还是应该以IE为准.
看一看HTML的帮助方件:open--------------------------------------------------------------------------------DescriptionOpens a new window and loads the document given by URL, or a blank document if a URL is not provided. Syntax window = object.open([URL [, name [, features [, replace]]]])Parameter Description URL String specifying the URL of the document to display. If no URL is specified, a new window with about:blank will be displayed. name Optional. String specifying the name of the window. This name is used for TARGET on a FORM or an A. features Optional. String specifying the window ornaments to display. The following table lists the supported features. Syntax Description fullscreen={ yes | no | 1 | 0 } Specifies whether to display the browser in a full-screen or normal window. Default is no. Use full-screen mode carefully. Because this mode hides the browser's title bar and menus, you should always provide a button or other visual clue to help the user close the window. ALT+F4 will also close the new window.
channelmode={ yes | no | 1 | 0 } Specifies whether to display the window in theater mode and show the channel band. toolbar={ yes | no | 1 | 0 } Specifies whether to display the browser toolbar, making buttons such as Back, Forward, and Stop available. location= { yes | no | 1 | 0 } Specifies whether to display the input field for entering URLs directly into the browser. directories = { yes | no | 1 | 0 } Specifies whether to add directory buttons. Default is no. status={ yes | no | 1 | 0 } Specifies whether to add a status bar at the bottom of the window. Default is yes. menubar={ yes | no | 1 | 0} Specifies whether to display the menu bar. Default is yes. scrollbars={ yes | no | 1 | 0} Specifies whether to display horizontal and vertical scroll bars. Default is yes. resizable={ yes | no | 1 | 0} Specifies whether to display resize handles at the corners of the window. width=number Sets the width of the window, in pixels. Minimum value should be 100. height=number Specifies the height of the window, in pixels. Minimum value should be 100. top=number Specifies the top position, in pixels. This value is relative to the upper-left corner of the screen. left=number Specifies the left position, in pixels. This value is relative to the upper-left corner of the screen.
replace Optional. A boolean value specifying whether the URL that is loaded into the new page should create a new entry in the window's browsing history or replace the current entry in the browsing history. If true, no new history entry is created. Return ValueReturns a reference to the new window. Use this reference to script properties and methods on the new window. ResA name for the new window can be used as a target for a form or an A element. By default, the open() method creates a window that has a default width and height and the standard menu, toolbar, and other features of Internet Explorer. You can alter this set of features by using the features parameter. This parameter is a string consisting of one or more feature settings. The replace parameter controls whether the new window is put into the browser history list. For example, the following creates a new window that contains Sample.htm. The new window is 200 by 400 pixels, has a status bar, but does not have a toolbar, menu bar, or address field. window.open("sample.htm",null, "height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");Applies Towindow
用逗号分开的option=value对,用于指定窗口的显示效果的。
<!--
window.open ('page.html', 'newwindow', 'height=100, width=400, top=0, left=0, toolbar=no, menubar=no, scrollbars=no,resizable=no,location=no, status=no')
//写成一行
-->
</SCRIPT> 参数解释: <SCRIPT LANGUAGE="javascript"> js脚本开始;
window.open 弹出新窗口的命令;
'page.html' 弹出窗口的文件名;
'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;
height=100 窗口高度;
width=400 窗口宽度;
top=0 窗口距离屏幕上方的象素值;
left=0 窗口距离屏幕左侧的象素值;
toolbar=no 是否显示工具栏,yes为显示;
menubar,scrollbars 表示菜单栏和滚动栏。
resizable=no 是否允许改变窗口大小,yes为允许;
location=no 是否显示地址栏,yes为允许;
status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;
</SCRIPT> js脚本结束
height width top left toolbar menubar scrollbars resizable location status
你可以根据字面意思来理解这些参数的含义.
replace的解释在HTML参考里面是这样写的:
Optional. A boolean value specifying whether the URL that is loaded into the new page should create a new entry in the window's browsing history or replace the current entry in the browsing history. If true, no new history entry is created.
你给的那些参数有一大部分是NS才支持的吧?呵呵.
我觉得现在还是应该以IE为准.
<SCRIPT LANGUAGE="javascript"> js脚本开始;
window.open 弹出新窗口的命令;
'page.html' 弹出窗口的文件名;
'newwindow' 弹出窗口的名字(不是文件名),非必须,可用空''代替;
height=100 窗口高度;
width=400 窗口宽度;
top=0 窗口距离屏幕上方的象素值;
left=0 窗口距离屏幕左侧的象素值;
toolbar=no 是否显示工具栏,yes为显示;
menubar,scrollbars 表示菜单栏和滚动栏。
resizable=no 是否允许改变窗口大小,yes为允许;
location=no 是否显示地址栏,yes为允许;
status=no 是否显示状态栏内的信息(通常是文件已经打开),yes为允许;
window = object.open([URL [, name [, features [, replace]]]])Parameter Description
URL String specifying the URL of the document to display. If no URL is specified, a new window with about:blank will be displayed.
name Optional. String specifying the name of the window. This name is used for TARGET on a FORM or an A.
features Optional. String specifying the window ornaments to display. The following table lists the supported features. Syntax Description
fullscreen={ yes | no | 1 | 0 } Specifies whether to display the browser in a full-screen or normal window. Default is no.
Use full-screen mode carefully. Because this mode hides the browser's title bar and menus, you should always provide a button or other visual clue to help the user close the window. ALT+F4 will also close the new window.
channelmode={ yes | no | 1 | 0 } Specifies whether to display the window in theater mode and show the channel band.
toolbar={ yes | no | 1 | 0 } Specifies whether to display the browser toolbar, making buttons such as Back, Forward, and Stop available.
location= { yes | no | 1 | 0 } Specifies whether to display the input field for entering URLs directly into the browser.
directories = { yes | no | 1 | 0 } Specifies whether to add directory buttons. Default is no.
status={ yes | no | 1 | 0 } Specifies whether to add a status bar at the bottom of the window. Default is yes.
menubar={ yes | no | 1 | 0} Specifies whether to display the menu bar. Default is yes.
scrollbars={ yes | no | 1 | 0} Specifies whether to display horizontal and vertical scroll bars. Default is yes.
resizable={ yes | no | 1 | 0} Specifies whether to display resize handles at the corners of the window.
width=number Sets the width of the window, in pixels. Minimum value should be 100.
height=number Specifies the height of the window, in pixels. Minimum value should be 100.
top=number Specifies the top position, in pixels. This value is relative to the upper-left corner of the screen.
left=number Specifies the left position, in pixels. This value is relative to the upper-left corner of the screen.
replace Optional. A boolean value specifying whether the URL that is loaded into the new page should create a new entry in the window's browsing history or replace the current entry in the browsing history. If true, no new history entry is created. Return ValueReturns a reference to the new window. Use this reference to script properties and methods on the new window. ResA name for the new window can be used as a target for a form or an A element. By default, the open() method creates a window that has a default width and height and the standard menu, toolbar, and other features of Internet Explorer. You can alter this set of features by using the features parameter. This parameter is a string consisting of one or more feature settings. The replace parameter controls whether the new window is put into the browser history list. For example, the following creates a new window that contains Sample.htm. The new window is 200 by 400 pixels, has a status bar, but does not have a toolbar, menu bar, or address field. window.open("sample.htm",null,
"height=200,width=400,status=yes,toolbar=no,menubar=no,location=no");Applies Towindow