Javascript - 重命名confirm()按钮 [英] Javascript - rename confirm() buttons
本文介绍了Javascript - 重命名confirm()按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
默认情况下,有两个按钮:confirm()中的ok和cancel。
有没有办法重命名它们?
By default, there are two buttons:"ok" and "cancel" in confirm().
Is there a way to rename them?
推荐答案
http://dev.w3.org/html5/spec-preview/user-prompts.html#simple-dialogs
根据定义的标准 confirm()
,无法指定自定义按钮标签。
According to the standard that defines confirm()
, there is no way to specify custom button labels.
浏览器必须显示确定/取消提示遵守HTML5。
The browser must display an OK/Cancel prompt to comply with HTML5.
这篇关于Javascript - 重命名confirm()按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文