window.open parameter, return value

Source: Internet
Author: User

First,window.open () Support environment:

javascript1.0+/jscript1.0+/nav2+/ie3+/opera3+

Second, the basic grammar:

window.open (Pageurl,name,parameters)

which

Pageurl as child window path

Name is a child window handle

Parameters is the window parameter ( each parameter is separated by commas )

Three, 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 ')

Write a line

-

</SCRIPT>

after the script is run,the page.html will open in the new form NewWindow, the width is 0, theheight is the top of the screen, and the screen is 0 pixels away . pixel, no toolbar, no menu bar, no scroll bar, no resizing, no address bar, no status bar. Please compare.

In the above example, there are a few parameters that are commonly used, and there are many other parameters, see four. Four, the parameters

where yes/no can also be used 1/0;pixelvalue is a specific value, unit pixels.

Parameters | range of Values | Description

alwayslowered|yes/no| specifies that the window is hidden after all Windows

alwaysraised|yes/no| specifies that the window hovers above all windows

depended|yes/no| whether to close at the same time as the parent window

directories|yes/no| Nav2 and 3 's catalog columns are visible

height|pixelvalue| Window Height

hotkeys|yes/no| set safe exit Hotkey in Window without menu bar

innerheight|pixelvalue| The pixel height of the document in the window

innerwidth|pixelvalue| the pixel width of the document in the window

location|yes/no| whether the location bar is visible

menubar|yes/no| whether the menu bar is visible

outerheight|pixelvalue| Settings Window ( including decorative border ) the pixel height

outerwidth|pixelvalue| Settings Window ( including decorative border ) The pixel width

resizable|yes/no| whether the window size can be adjusted

screenx|pixelvalue| the pixel length of the window from the left edge of the screen

screeny|pixelvalue| the pixel length of the window from the top edge of the screen

scrollbars|yes/no| whether the window can have a scroll bar

titlebar|yes/no| whether the window title bar is visible

toolbar|yes/no| whether window toolbars are visible

width|pixelvalue| the pixel width of the window

z-look|yes/no| whether the window is activated to float on top of other Windows

Related Article

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.