JavaScript Display popup (ii)

Source: Internet
Author: User

window open ( surl , sName , sfeatures , breplace )

surl:   Optional, HTML of the loaded page

  sName: Optional, specifies the name of the open window

_media:ie6.0 opens the sURL in the media panel on the left side of the browser.
_blank: Opens surl in a new window.
_parent: Opens within the parent frame of the current frame. If the current frame has no parent frame, this parameter value is equivalent to _self.
_search:ie5.0 opens the sURL in the search panel on the left side of the browser.
_self:surl opens in the current window, overwriting the current document.
_top: Opens sURL in the topmost window outside of all frames. If the current window has no frame structure, this parameter value is equivalent to _self.

   sfeatures:Options are available. String. Specifies the window decoration style. Use the following values. The multiple is separated by commas.         The setting of this parameter will only work if a new browser window is created. Channelmode = {Yes | no | 1 | 0} Specifies whether to display the window as a channel mode. The default value is No.
directories = {Yes | no | 1 | 0} Specifies whether the link button is displayed. The default value is yes.
fullscreen = {Yes | no | 1 | 0} Specifies whether the window is displayed in full-screen mode. The default value is No. Be careful with full-screen mode, because this mode hides the title bar and menu of the browser window. If you do not provide the ability to close the window within the page, the user can use the Alt+f4 shortcut to close the window.
Height = number Sets the altitude of the window. The minimum value is 100.
left = number Sets the horizontal axis of the window relative to the desktop. The unit is in pixels (px).
width = number to set the window widths. The minimum value is 100.
top = number Sets the ordinate of the upper-left corner of the window relative to the desktop. The unit is in pixels (px).
Location = {Yes | no | 1 | 0} Sets whether to display the address bar of the browser window. The default value is yes.
menubar = {yes | no | 1 | 0} Sets whether to display the menu bar of the browser window. The default value is yes.
resizable = {Yes | no | 1 | 0} Sets whether the window allows the user to change the size. The default value is yes.
scrollbars = {yes | no | 1 | 0} Sets whether the window can have scroll bars. The default value is yes.
Status = {Yes | no | 1 | 0} Sets whether to display the status bar of the browser window. The default value is yes.
titlebar = {Yes | no | 1 | 0} Sets whether to display the title bar of the browser window. This parameter is ignored unless the calling program is an HTML Application (HTA) or a trusted dialog box. The default value is yes.
toolbar = {Yes | no | 1 | 0} Sets whether to display the toolbar of the browser window. The default value is yes.
Breplace: Available options. A Boolean value (Boolean). False | True false: The newly opened document overwrites the current document in the History list.
True: The newly opened document is simply added to the end of the history list.



In the first page, the window's open method is called, but the second page is not passed to the second page,

But the second page passes Window.opener; gets the window of the first page

JavaScript Display popup (ii)

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.