HTML(Open Method)翻译自MSDN

Open Method

Opens a new window and loads the document specified by a given URL.

Navigates the app window to the specified location.

打开一个窗口加载给定的 URL 指定文档
导航应用程序窗口到指定位置

Syntax

语法:var retval = window.open(url, name, features, replace);

 

Parameters

参数

 

url [in, optional]

Type: String

类型:字符串类

String that specifies the URL of the document to display. If no URL is specified, a new window with about:blank is displayed.

这个字符串是识别所展示文件的URL,如果没有可识别的URL,就会打开一个about:blank的新页面.

 

 

name [in, optional]

Type: String

类型:字符串类

String that specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.

这个字符串类是识别窗口的名字.这个名称是用窗体元素目标属性

_blank

The url is loaded into a new, unnamed window.

从一个未命名的新窗口打开URL

_parent

The url is loaded into the current frame's parent. If the frame has no parent, this value acts as the value _self.

从现在框架的上级打开,要是没有上级,这个属相就相当于_self

_self

The current document is replaced with the specified url.

当前文档被所指定的URL替代

_top

The loaded url replaces any framesets that might be loaded. If there are no framesets defined, this value acts as the value _self.

加载的URL可能替换框架集任意一个.如果没有定义的框架集,这个属性相当于 _self

 

 

features [in, optional]

Type: String

类型:字符串

String that contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes,toolbar=yes"). The following values are supported.

字符串包含逗号分隔列表。每一个项包涵一个选项和一个值,用等号分开(比如:"fullscreen=yes,toolbar=yes").后面的值支持同样功能.

channelmode = { yes | no | 1 | 0 }

Specifies whether to display the window in theater mode. The default is no.

指定是否剧场模式显示窗口默认值没有

Internet Explorer 7. channelmode = { yes | 1 } overrides height, width, top, and left values. When active, the Navigation Bar is hidden and the Title Bar is visible. The Channel Band is no longer supported in Internet Explorer 7.

Internet explorer 7。channelmode = {yes | 1} 将覆盖高度 宽度 边框激活隐藏导航标题可见 Internet Explorer 7 不再支持通信信道带宽

In Internet Explorer 6, channelmode = { yes | 1 } displays the Channel Band in theater mode.

在 Internet Explore 6中,channelmode = {yes | 1} 在剧场模式显示通信信道带宽

fullscreen = { yes | no | 1 | 0 }

Specifies whether to display the browser in full-screen mode. The default is no. Use full-screen mode carefully. Because this mode hides the browser's title bar and menus, always provide a button or other visual clue to help the user close the window. ALT+F4 closes the new window.

指定是否全屏显示浏览器.默认不全屏.用fullscreen是要小心.因为全屏将隐藏浏览器的标题栏和菜单栏,通常提供一个按钮或者其他可见线索来关闭窗口.ALT+F4关闭新窗口.

Internet Explorer 7. A window in full-screen mode doesn't need to be in theater mode.

Internet explorer 7。全屏幕模式下窗口并不需要影院模式下

In Internet Explorer 6, a window in full-screen mode must also be in theater mode (channelmode).

在Internet Explorer 6 中全屏模式下窗口必须剧场模式 (channelmode)。

width = number

Sets the width of the window in pixels. The minimum value is 250, and specifies the minimum width of the browsers content area.

设置窗口宽度像素为单位 250指定浏览器内容区域最小宽度

In Internet Explorer 6, the minimum height value is 100.

在Internet Explorer 6,最小高度 100

height = number

Sets the height of the window in pixels. The minimum value is 150, and specifies the minimum height of the browser content area.

像素为单位设置窗口高度 150指定浏览器内容区域最小高度

In Internet Explorer 6, the minimum height value is 100.

在Internet Explorer 6,最小高度 100

left = number

Specifies the left position, in pixels. This value is relative to the upper-left corner of the screen. The value must be greater than or equal to 0.

指定左边位置像素为单位相对于屏幕左上角必须大于等于0。

top = number

Specifies the top position, in pixels. This value is relative to the upper-left corner of the screen. The value must be greater than or equal to 0.

指定最高位置像素为单位相对于屏幕左上角必须大于等于0。

location = { yes | no | 1 | 0 }

Specifies whether to display the Navigation Bar. The default is yes.

指定是否显示导航默认值

In Internet Explorer 6, location specifies whether to display the Address Bar.

在Internet Explorer 6,位置指定是否显示地址

The BackForward, and Stop commands are now located in the Navigation Bar.

后面向前停止命令在导航中显示

In Internet Explorer 6, the navigation commands were located in the toolbar.

在Internet Explorer 6,导航命令位于工具栏

menubar = { yes | no | 1 | 0 }

Specifies whether to display the Menu Bar. The default is yes.

指定是否显示菜单默认值

Internet Explorer 7. By default, the menu bar is hidden unless revealed by the ALT key. menubar = { no | 0 } prohibits the Menu Bar from appearing even when the ALT key is pressed.

Internet explorer 7。默认情况下菜单隐藏除非显示 ALT 菜单栏 ={no | 0} 禁止菜单甚至出现按下 ALT 键时

The combination of menubar = { no | 0 } and toolbar = { no | 0 } hides the toolbar and disables any additional third-party user interfaces.

菜单栏组合 = {no | 0} 工具栏 = {no | 0} 隐藏工具栏禁用任何其他第三方用户接口

resizable = { yes | no | 1 | 0 }

Specifies whether to display resize handles at the corners of the window. The default is yes.

指定是否显示窗口大小调整控柄默认值

Internet Explorer 7. resizable = { no | 0 } disables tabs in a new window.

Internet explorer 7。可调整大小 = {no | 0} 禁用窗口选项卡

scrollbars = { yes | no | 1 | 0 }

Specifies whether to display horizontal and vertical scroll bars. The default is yes.

指定是否显示水平垂直滚动默认值

status = { yes | no | 1 | 0 }

Specifies whether to add a Status Bar at the bottom of the window. The default is yes.

指定是否窗口底部添加一个状态栏默认值

toolbar = { yes | no | 1 | 0 }

Specifies whether to display the browser Command Bar, making buttons such as Favorites CenterAdd to Favorites, and Tools available. The default is yes.

指定是否显示浏览器命令制作收藏中心添加收藏夹按钮以及可用工具默认值

The combination of menubar = { no | 0 } and toolbar = { no | 0 } turns off the toolbar and any additional third-party user interfaces.

菜单栏工具栏组合menubar = {no | 0} 和toolbar = {no | 0} 关闭工具栏任何其他第三方用户接口

In Internet Explorer 6, the toolbar sFeatures specifies whether to display the browser toolbar, making buttons such as BackForward, and Stop available.

在Internet Explorer 6 中工具栏 sFeatures 指定是否显示浏览器工具栏上制作按钮后退 前进 停止可用

 

 

posted @ 2015-06-13 23:38  北极熊爱吃鱼  阅读(210)  评论(0编辑  收藏  举报