Window. showModalDialog syntax, showmodaldialog

Source: Internet
Author: User

Window. showModalDialog syntax, showmodaldialog

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

1. supported versions:
ShowModalDialog () (IE 4 + supported)


2. Syntax:
VReturnValue = window. showModalDialog (sURL [, vArguments] [, sFeatures]);


3. Parameter explanation:
A required sURL string is used to specify the URL of the webpage to be displayed in the dialog box.
An optional variant of vArguments is used to pass parameters to the dialog box. The parameter type is not limited.
The dialog box uses window. dialogArguments to obtain the passed parameters.
An optional sFeatures string is used to describe the appearance and other information of the dialog box.

4. sFeatures parameter description
DialogHeight npx dialog box height, not smaller than 100px
DialogWidth npx dialog box width
Distance from the left of the main window to dialogLeft npx
Distance of dialogTop npx from the main window
Center {yes | no | 1 | 0} whether the window is centered. The default value is yes.
Help {yes | no | 1 | 0} whether to display the help button. The default value is yes.
Resizable {yes | no | 1 | 0} whether the size can be changed. The default value is no.
Status {yes | no | 1 | 0} indicates whether the status bar is displayed. The default value is yes [Modeless] or no [Modal].
Scroll {yes | no | 1 | 0 | on | off} indicates whether the scroll bar is displayed in the dialog box. The default value is yes.
Note: The dialogHide, edge, and unadorned attributes are used in HTA (HTML Aplication) and are generally unavailable on webpages.


 

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.