Get the App
SLTechnology News&Howtos  ›  Development  › 

How to change the confirmation and cancellation information in js.Confirm() to yes and no

Shulou Source: shulou.com Published: 2022-06-02 09:27:44 11月05日 Update

This article will explain in detail how to change the confirmation and cancellation information in js.Confirm () to yes and no. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.

A small question raised by the client.

I checked it on the Internet and found that some people said to use showModalDialog to simulate js.confirm ().

Feel too troublesome, find another way to use confirm in vbscript to cover window.confirm, but the disadvantage is that it can not be easily renamed to other text.

Function window.confirm (str) {

ExecScript ('ret=msgbox ("' + str+'", 52)', 'vbscript')

Return ret==6

}

This is the end of the article on "how to change the confirmation and cancellation information in js.Confirm () into yes and no". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.

Tags: Articles information more good practical content customers that is text articles methods knowledge shortcomings problems trouble reference help related Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno vpn MariaDB Microsoft Shulou Information Huawei