JavaScript dialog box: JavaScript Learning-dialog box

Source: Internet
Author: User
Tags return window

Displays a message to the user:
Alert ("Content");
Ask the user to click the OK or Cancel button and return a Boolean value:
Confirm ("content");
Waits for the user to enter a character channeling, and then the character is channeling back:
Prompt ("content");
Modal dialog box (displayed can not be selected in the following dialog box) (This method is not compatible, IE can be used under the normal)
ShowModalDialog (URL; "Arbitrary value", property);
The URL of the url:html content.
"Any value": This value can be accessed by the script in the dialog box through the value of the Window.dialogarguments property. The value of the Window.returnvalue property is the return value of this method. The HTML content of the dialog box must often contain the "confirm" button used to set the returnvalue.
Properties: Configures the dimensions and other parameters of the dialog box.
Note: The content is the pop-up prompt information.
This article links http://www.cxybl.com/html/wyzz/JavaScript_Ajax/20130607/38415.html

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.