Click here to Skip to main content
15,881,516 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Comments
Sergey Alexandrovich Kryukov 3-Sep-14 21:37pm    
Are you sure that standard OK/Cancel is not good enough for you?
—SA
Renga.g 3-Sep-14 21:47pm    
hi, thanks for your time,

yes i need 1st msgbox only with yes & no button, after i click yes button

i need second msg box with only ok button.

finally if i click ok the control will show the next html page.

thanks.

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.
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 3-Sep-14 22:44pm    
5ed. I wrote an alternative Solution 2, please see.
—SA
Abhinav S 3-Sep-14 22:48pm    
Thanks. Just imagine a fully working popup without any JavaScript. I found this article to be quite good.
Sergey Alexandrovich Kryukov 3-Sep-14 22:50pm    
I know. I looked it through — pretty amazing thing.
—SA
Renga.g 3-Sep-14 23:19pm    
ya it's very nice, but i need simple msgbox with normal design.
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
 
Share this answer
 
Comments
Abhinav S 3-Sep-14 22:48pm    
Yes. This would be much easier to implement. 5,
Sergey Alexandrovich Kryukov 3-Sep-14 22:51pm    
Thank you, Abhinav.
And both solutions are much better than regular confirm or alert, from the user standpoint.
—SA
Renga.g 3-Sep-14 23:25pm    
this one i try ready, but i'm not sure hoe to use that jquery code.

Sergey Alexandrovich Kryukov 3-Sep-14 23:31pm    
As I say: highly recommended. jQuery will pay off greatly in many other projects.
Documentation is very good, code samples are very clear...
Using it in code makes the code extremely compact and readable, compared to the "usual" way...

Will you consider accepting this or both answers formally (green "Accept" button)?

—SA

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900