Window. Confirm rewrite implementation friendly dialog box (supports IE)

Source: Internet
Author: User
Last time I wrote about window. the open rewrite implementation friendly dialog box (supporting IE), my friends helped me perform a lot of tests and thought about my support. Here I expanded it to window. confirm rewrite implementation friendly dialog box (supports IE)
The following is the usage of the specific implementation effect: < Link Href = "Http://files.cnblogs.com/Charles2008/CSS.css" Type = "Text/CSS" REL = "Stylesheet"   />

< Script Type = "Text/JavaScript" SRC = "Http://files.cnblogs.com/Charles2008/Confirm.js" > </ Script >

usage : you only need to reference the CSS style sheet and Javascript script on your page, and use window on your page. confirm ("message", "OK ()", "No ()"), where message is the message of the dialog box you want to pop up, "OK ()" function name, it is the function that is executed when you click "OK" and the "No ()" function name. It is the function that is executed when you click "cancel.
The following is an example: click the following button to overwrite the dialog box (because window. Alert () on the page is overwritten. The result is rewritten. For details, see window. open rewrite implementation friendly dialog box (supporting IE)
window. confirm
finally, I hope my friends can give me valuable comments. Thank you! Charles

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.