window.open----Method

Source: Internet
Author: User

Open method

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

Navigates the app window to the specified location. Navigates the application window to the specified location.

Syntax syntax var retval = window.open (URL, name, features, replace); Sets the variable retval open window.

URL: New window Address; Name: window open, New window or window open;

Features: Features-features of new windows; Replace: replace (this property is not normally used). -----Set the variable to open the window, the open half on the first three properties.

Parameters parameters

URL [In, Optional] new window address; optional: Optional. Mean

Type:string---Type: string

String that specifies the URL of the document to display.     If no URLs are specified, a new window with About:blank is displayed. A string that specifies the URL of the document to display. If no URL is specified, a new window appears: blank.

name [In, Optional] window open, new window or its own window opens;

Type:string---Type: string

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

_blank

The URL is loaded into a new, unnamed window. The URL is loaded into a new, unnamed window.

_parent

The URL is loaded to the current frame ' s parent. If the frame has a no parent, this value acts as the value _self.

The URL loads the parent to the current frame. If the frame does not have parents, this value is used as _self value. ---Don't know much, not often.

_self

The current document is a replaced with the specified URL.

The current document is replaced with the specified URL. Display a new page directly---the old page

_top

The loaded URL replaces any framesets this might be loaded. If There is no framesets defined, this value acts as the value _self.

Load the URL to replace any frameset that might be loaded. If no frameset is defined, this value is used as the _self value. ---Don't know much, not often.

features [In, optional] features-features of new windows

Type:string---Type: string

String that contains a list of items separated by commas. Each item is consists of an option and a value, separated by a equals sign (for example, "Fullscreen=yes, Toolbar=yes").     The following values are supported. The string contains a comma-delimited list of items. Each entry contains an option and a value, by an equal sign (for example, "full screen = yes, toolbar = yes"). The following values are supported.

Channelmode = {Yes | no | 1 | 0}

Specifies whether to display the window in theater mode.         The default is No. Specifies whether the window is displayed in cinema mode. The default is negative.

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

Internet Explorer 7. Channelmode = {yes | 1} covers the height, width, top and left values. When active, hide the navigation bar and the title bar is visible. Channel bands are no longer supported in Internet Explorer 7.

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

In Internet Explorer 6, Channelmode = {yes | 1} shows the channel band mode in the theatre.

fullscreen = {Yes | no | 1 | 0} fullscreen

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 C Lose the window. ALT+F4 closes the new window.

Specifies whether to display browser full-screen mode. The default is negative. Use full-screen mode with caution. Because this mode hides the browser's title bar and menu, it always provides a button or other visual cue to help the user close the window. ALT + F4 close the new window.

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

Internet Explorer 7. In full screen mode A window is not required in cinema mode.

In Internet Explorer 6, a window in Full-screen mode must also is in theater mode (Channelmode).

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

height = number

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

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

left = number

Specifies the left position, in pixels. This value was relative to the upper-left corner of the screen.         The value must is greater than or equal to 0. 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.

Location = {Yes | no | 1 | 0} position

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

In Internet Explorer 6, location Specifies whether to display the Address Bar. In Internet Explorer 6, specify whether the address bar location is displayed.

The back, Forward, and Stop commands is now located in the Navigation Bar. Back, forward, stop the command is now located in the navigation bar.

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

menubar = {yes | no | 1 | 0} menu bar

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

Internet Explorer 7. By default, the menu bar was 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. By default, the menu bar is hidden unless you reveal the ALT key. Menu bar = {No | 0} prevents menu bars from appearing even if 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.

Menu bar combination = {No | 0} and toolbar = {No | 0} hides the toolbar and disables any other third-party user interface.

resizable = {Yes | no | 1 | 0} resizable

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

Specifies whether to show adjustment processing in the corner window. The default is yes.

Internet Explorer 7. resizable = {No | 0} Disables tabs in a new window.

Internet Explorer 7. resizable = {No | 0} disables the label in a new window.

scrollbars = {yes | no | 1 | 0} scroll bar

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

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

Status = {Yes | no | 1 | 0} state

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

Specifies whether to add a window at the bottom of the status bar. The default is yes.

toolbar = {Yes | no | 1 | 0} toolbar

Specifies whether to display the browser Command Bar, making buttons such as Favorites Center, Add to Favorites, and Tools Available.         The default is yes. Specifies whether to display the browser command bar, buttons such as Favorites Center, add 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.

Menu bar combination = {No | 0} and toolbar = {No | 0} close the toolbar and any other third-party user interface.

In Internet Explorer 6, the toolbar sfeatures specifies whether to display the browser toolbar, making buttons such as Bac K, Forward, and Stop available.

In Internet Explorer 6, the toolbar sfeatures specifies whether to display the browser toolbar, let the button, go ahead, stop.

top = number

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

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

width = number

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

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

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

window.open----Method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.