It's not a secret anymore!
The moose likes HTML, CSS and JavaScript and the fly likes Java script dialog box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Java script dialog box" Watch "Java script dialog box" New topic

Java script dialog box

Richard Mendoza
Ranch Hand

Joined: Feb 26, 2003
Posts: 48
How do I create a dialog box in JAVASCRIPT that contains two buttons labeled YES or NO. I'm using confirm() method, but the buttons labeled OK and CANCEL.. Can I change the labels of it to YES/NO instead of OK/CANCEL.. If not, is there a way to create a dialog box containing YES and NO buttons?
himanshu patel
Ranch Hand

Joined: Feb 03, 2003
Posts: 205
As far as I know, You can not rename to 'YES' and 'NO'.
However, you may go for customized dialog box,
Check with this Eric's link.

If you want to become a rich, do not work for others but make others to work for you.
I agree. Here's the link:
subject: Java script dialog box
It's not a secret anymore!