Window. open, window. open Parameters

Source: Internet
Author: User

Window. open, window. open Parameters
I. window. open () support environment: JavaScript1.0 +/JScript1.0 +/Nav2 +/IE3 +/Opera3 + 2. Basic Syntax: window. open (pageURL, name, parameters) Where: pageURL is the sub-window path name as the sub-window handle, this parameter is the window identifier, if the pop-up window A name =, the pop-up page also opens A pop-up window B. If the name is still A, the content of window B is displayed in window A. parameters is window parameters (parameters are separated by commas) iii. Example: <SCRIPT> 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>
After running the script, page.html will be opened in the newwindow of the new form, with a width of 100 and a height of 400. It is 0 pixels away from the screen top, 0 pixels left, no tool bar, no menu bar, no scroll bar, and cannot be adjusted, no address bar, no status bar. Please compare. In the preceding example, several common parameters are involved. In addition, there are many other parameters. For details, see section 4. 4. Among the parameters, yes/no can also use 1/0. pixel value is a specific value, in pixels. Parameter | value range | description | alwaysLowered | yes/no | the specified window is hidden behind all windows. alwaysRaised | yes/no | the specified window is suspended on all windows. depended | yes/no | whether to close directories with the parent window | yes/no | height is visible in the directory bar of Nav2 and 3 | pixel value | window height hotkeys | yes/no | set security in the window without a menu bar exit the hotkey innerHeight | pixel value | innerWidth of the document in the window | pixel value | the pixel width location of the document in the window | yes/no | whether the location bar is visible to menubar | yes/no | whether the menu bar is visible outerHeight | pixel value | set the window (including the decorative border) pixel height outerWidth | pixel value | set window (including decorative border) pixel width of resizable | yes/no | whether the window size can be adjusted screenX | pixel value | the pixel length between the window and the left boundary of the screen screenY | pixel value | the pixel length between the window and the upper boundary of the screen scrollbars | yes/no | whether the window can have a scroll bar titlebar | yes/no | whether the toolbar is visible in the window question bar | yes/no | whether the window toolbar is visible Width | pixel value | the pixel Width z of the window -look | yes/no | whether the window floated above other windows after being activated
Example: window. error prone of the open name parameter <Html> <Html>


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.