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