window.showModalDialog syntax

Source: Internet
Author: User

The window.showModalDialog () method is used to create a modal dialog box that displays HTML content.

1, Version support:
ShowModalDialog () (IE 4+ support)


2. Syntax:
Vreturnvalue=window.showmodaldialog (Surl[,varguments][,sfeatures]);


3. Parameter explanation:
sURL the required string is used to specify the URL of the page to display for the dialog box.
Varguments optional variants are used to pass parameters to the dialog box. Parameter types are not limited.
The dialog box uses window.dialogarguments to get the arguments passed in.
Sfeatures Optional string to describe the appearance of dialog boxes and other information

4. Sfeatures parameter Description
Dialogheight npx dialog box height, not less than 100px
Dialogwidth npx Dialog box width
Dialogleft npx from the left of the main window
Dialogtop NPX distance from the main window
Center {yes | no | 1 | 0} window is centered, default Yes
Help {yes | no | 1 | 0} whether to display the Assist button, default Yes
Resizable {yes | no | 1 | 0} whether the size can be changed, the default no
Status {yes | no | 1 | 0} whether the status bar is displayed, default is yes[Modeless] or No[modal]
Scroll {yes | no | 1 | 0 | on | off} Indicates whether the dialog box displays a scroll bar, the default is Yes
Note: dialoghide,edge,unadorned these three attributes are used in HTA (HTML aplication) and are not available on general Web pages.


window.showModalDialog syntax

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.