JavaScript displays pop-up windows

Source: Internet
Author: User

window. ShowModalDialog (surl,varguments, sfeatures)
Parameter description:
sURL--Required parameter, which specifies the URL of the document to be displayed by the dialog box. To display the path of the page
varguments-optional parameter, which is used to pass parameters to the dialog box. There are no limits on the types of arguments passed, including arrays. The dialog box uses window.dialogarguments to get the arguments passed in. Parameters passed in
sfeatures--optional parameters, which describe the appearance of the dialog box, can be used one or several, with a semicolon ";" Separated. The appearance of the dialog box that is displayed
center:{Yes| No | 1 | 0 | On | OFF} Center Display
dialoghide:{Yes |No| 1 | 0 | On | Off} Hide dialog box
edge:{Sunken |raised}//Edge
help:{Yes| No | 1 | 0 | On | OFF}
resizable:{Yes |No| 1 | 0 | On | OFF}//Adjustable size
scroll:{Yes| No | 1 | 0 | On | OFF}//scroll bar
status:{Yes| No | 1 | 0 | On | OFF}//status bar
unadorned:{Yes |No| 1 | 0 | On | OFF}//Decoration


The second parameter passes the data and passes the window.dialogarguments on the second page; get

If you are participating in a window, you can call the JS code in the first page

To create a modeless dialog box to display the specified document:

Vreturnvalue = window. showModelessDialog (sURL, varguments, Sfeatures)

JavaScript displays pop-up windows

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.