zoukankan      html  css  js  c++  java
  • HTML WINDOW Open Method

    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,一个新窗口:显示空白。

     

    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.

    这个目标使得文档载入包含这个超链接的窗口,用 top 目标将会清除所有被包含的框架并将文档载入整个浏览器窗口。

    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.

    字符串包含一个由逗号分隔的物品列表。每个条目包含一个选项和值,由一个等号(例如,“全屏=是的,工具栏= 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.

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

           指定是否在theater mode下显示窗口。默认是否定的。

           Internet Explorer 7channelmode = {yes| 1 }覆盖高度,宽度,顶部和左值。当    激活,隐藏导航栏和标题栏是可见的。Channel BandInternet Explorer 7不再支持。

           Internet Explorer 6,channelmode = {yes| 1 }theater mode.显示Channel Band

     

    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.

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

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

    指定是否显示浏览器全屏模式。默认是否定的。谨慎地使用全屏模式。因为这种模式隐藏浏览器的标题栏和菜单,总是提供一个按钮或其他视觉线索来帮助用户关闭窗口。ALT + F4关闭新窗口。

    Internet Explorer 7。在全屏模式下一个窗口在theater mode下不需要。

    Internet Explorer 6,一个窗口在全屏模式也必须在theater mode(channelmode)

     

    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.

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

    设置窗口的高度(以像素为单位)。最小值为150,指定浏览器内容区域的最低高度。

    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

     

    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.

    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,指定是否显示地址栏位置。

          后退,前进,停止命令现在位于导航栏。

          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.

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

           指定是否显示菜单栏。默认是肯定的。

           Internet Explorer 7。默认情况下,菜单栏隐藏,除非透露ALT key. menubar = {no| 0 }   禁止菜单栏出现即使按下ALT键。

           菜单条的组合The combination of menubar = {no| 0 } and toolbar = {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。resizable = {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.

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

    指定是否显示浏览器命令栏,按钮等收藏中心,添加到收藏夹”,和工具可用。默认是肯定的。

    菜单条的组合The combination of menubar = {no| 0 } and toolbar = {no| 0 }关闭工具栏和任何其他第三方的用户界面。

    Internet Explorer 6,工具栏sFeatures指定是否显示浏览器工具栏,像按钮,前进,停止等按钮。

     

    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

     

    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.

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

    设置窗口的宽度(以像素为单位)。最小值为250,指定浏览器内容区域的最小宽度。

    Internet Explorer 6,最小高度值为100

     

    replace [in, optional]

    Type: Boolean

    Boolean that specifies whether the url creates a new entry or replaces the current entry in the window's history list. This parameter only takes effect if the url is loaded into the same window.

    布尔,指定url是否创建一个新条目或替换当前窗口的历史列表中的条目。这个参数只生效,如果url加载到同一个窗口中。

    true

    url replaces the current document in the history list.历史上的url替换当前文档列表。

    false

    url creates a new entry in the history list.url在历史列表中创建一个新的条目。

  • 相关阅读:
    金蝶用户组权限语句
    金蝶物料更改保质期控制状态
    cisco+pppoe拨号配置教程
    FormFile上传文件代码(修改)
    试用django 和 rgraph 简单记录
    一闪而过的远程桌面
    用 python matplotlib 画图 简单记录
    去除UTL_FILE导致的ORA12012 ORA04068 ORA04063 ORA06508
    python mysqldb模块安装
    canvas绘制圆形
  • 原文地址:https://www.cnblogs.com/275147378abc/p/4517346.html
Copyright © 2011-2022 走看看