How to change the confirmation and cancellation information in js.Confirm() to yes and no
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.