我怎样才能显示一个是/否消息框在JavaScript用户? [英] How can I display a yes/no message box to the user in Javascript?

查看:124
本文介绍了我怎样才能显示一个是/否消息框在JavaScript用户?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我怎样才能显示一个是/否消息框,在JavaScript中的客户端的用户?

How can I display a yes/no message box to the user on the client-side in Javascript?

我不想显示确定和取消给用户,这是在JavaScript中的确认函数的默认行为。任何帮助将AP preciated。

I don’t want to display "OK" and "Cancel" to the user, which is the default behavior of the confirm function in Javascript. Any help will be appreciated.

推荐答案

您不能修改好/默认的确认框的取消,但您可以使用第三方库(如jQuery的/ jQuery的用户界面),这将给你你所需要的: http://jqueryui.com/demos/dialog/#modal-confirmation

You can't amend the Ok/Cancel of the default confirm box, but you can use a 3rd party library (such as jQuery/jQuery UI) which will give you what you need: http://jqueryui.com/demos/dialog/#modal-confirmation

这篇关于我怎样才能显示一个是/否消息框在JavaScript用户?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆