How to create my own confirm dialog!

H

Hans

Basically what I would like to do is my own confirm dialog so I can choose
the text on the buttons etc. My code looks something like this today


if (confirm("Do you want to save?"))
//do some saving
else
//do something else


I guess I will have to open a new window with window.open() but how do I set
it up so it will wait for a return value (i.e when the user clicks on the
Yes or No button)?

Regards
/Hans
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top