更新时间:2023-11-14 15:40:46
不幸的是,没有跨浏览器支持打开不是默认确定/取消对的确认对话框.您提供的解决方案使用的是 VBScript,它只在 IE 中可用.
Unfortunately, there is no cross-browser support for opening a confirmation dialog that is not the default OK/Cancel pair. The solution you provided uses VBScript, which is only available in IE.
我建议使用可以构建基于 DOM 的对话框的 Javascript 库.试用 Jquery 用户界面:http://jqueryui.com/
I would suggest using a Javascript library that can build a DOM-based dialog instead. Try Jquery UI: http://jqueryui.com/