如何在html5中显示带有yes和no按钮的msgbox? [英] How to show msgbox with yes and no button in html5 ?

查看:69
本文介绍了如何在html5中显示带有yes和no按钮的msgbox?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨朋友们,



祝你有个美好的一天!!!



i需要帮助,目前我我正在使用html5,我想用yes和no按钮显示msgbox,如果单击yes表示控件将转到下一个msgbox(2),在msgbox(2)中只有ok按钮,单击ok控件后将显示下一个html页面。



i尝试了很多方法,但我还不清楚。



任何人都可以分享给我代码。(我也使用javascript)



谢谢

renga

解决方案

此链接将帮助您仅使用HTML 5生成模式弹出窗口 - HTML5 / CSS 3模态对话框;没有JavaScript [ ^ ]。

当您点击确定时,使用锚点打开下一页的链接。



Of当然,使用JavaScript会使您更容易实现相同的解决方案。


解决方案1的解决方案替代方案:您可以使用jQuery对话框插件:

http://jqueryui.com/dialog [ ^ ]。



这个东西更容易使用。



如果您需要学习jQuery(强烈推荐),请参阅:

http:// en.wikipedia.org/wiki/JQuery [ ^ ],

http://jquery.com [ ^ ],

http://learn.jquery.com [ ^ ],

http://learn.jquery.com/using-jquery-core [ ^ ],

http://learn.jquery.com/about-jquery/how-jquery-works [ ^ ](从在这里)。



请记住,jQuery在设计时考虑了兼容性。



-SA

Hi friends,

Have a Good day!!!

i need help, currently i'm working with html5, i want to show msgbox with yes and no button, if click yes means control will go to next msgbox(2), in that msgbox(2) only have ok button, after click ok control will next html page.

i tried already many ways,still im not clear.

can anyone pls share to me with code.(im using javascript also)

Thanks
renga

解决方案

This link will help you generate a modal popup using only HTML 5 - HTML5/CSS 3 Modal Dialog Box; no JavaScript[^].
Use anchors to open links to the next page when you click ok.

Of course, using JavaScript would make it easier for you to implement the same solution.


The solution alternative to Solution 1: you can use jQuery dialog plug-in:
http://jqueryui.com/dialog[^].

This thing is easier to use.

If you need to learn jQuery (highly recommended), please see:
http://en.wikipedia.org/wiki/JQuery[^],
http://jquery.com[^],
http://learn.jquery.com[^],
http://learn.jquery.com/using-jquery-core[^],
http://learn.jquery.com/about-jquery/how-jquery-works[^] (start from here).

Remember that jQuery is designed with compatibility in mind.

—SA


这篇关于如何在html5中显示带有yes和no按钮的msgbox?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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