在确认()对话框是/否按钮,而不是确定/取消? [英] Yes/No buttons instead of OK/Cancel in a confirm() dialog?
问题描述
在一个Adobe AIR(HTML / JS)应用程序,是有可能显示<大骨节病>是骨节病> / ,而不是没有骨节病>按钮<大骨节病>确定骨节病> / <大骨节病>取消骨节病>在确认()
对话框?
In an Adobe AIR (HTML/JS) app, is it possible to display Yes/No buttons, instead of OK/Cancel in a confirm()
dialog?
凡是与 WebKit的应该工作。
下面是一个相关问题的,但所有的答案都利用jQuery的,我不希望添加只是这一点。
Here's a related question, but all of the answers utilise jQuery, which I don't want to add just for this.
推荐答案
我不这么认为。在JS,确认()
指定只使用<大骨节病>确定骨节病>和<大骨节病>取消骨节病>按钮。
I don't believe so. In JS, confirm()
is specified to only use the OK and Cancel buttons.
如果你想更复杂的东西,你必须让自己的对话框,或者使用第三方的一个提供您所需的功能(当然,也包括jQuery的,不幸)。
If you want something more complicated, you'll have to make your own dialog, or use a third-party one that provides your desired functionality (yes, including jQuery, unfortunately).
这篇关于在确认()对话框是/否按钮,而不是确定/取消?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!