带3个按钮的JavaScript警报 [英] JavaScript alert with 3 buttons

查看:37
本文介绍了带3个按钮的JavaScript警报的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个JavaScript警报按钮,当用户要进入注册页面时,该按钮会出现在网站上.

I have a JavaScript alert button that appears on the website when a user is going to proceed to a signup page.

看起来像这样

您要进入注册页面吗?
<确定><取消>

Would you like to proceed to the signup page?
< OK > < Cancel >

是否可以在警报中添加第三个按钮,使其看起来像

Would it be possible to add a third button to the alert so that it looks like

您要进入注册页面吗?
<更多信息><确定><取消>

Would you like to proceed to the signup page?
< More Info > < OK > < Cancel >

推荐答案

否.

您需要使用自定义模式对话框,例如 jQuery UI对话框.

You need to use a custom modal dialog, such as jQuery UI Dialog.

这篇关于带3个按钮的JavaScript警报的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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