wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Confirm box  ok/cancel to Yes/No. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Confirm box  ok/cancel to Yes/No." Watch "Confirm box  ok/cancel to Yes/No." New topic

Confirm box ok/cancel to Yes/No.

satyanarayana bnv

Joined: Aug 07, 2008
Posts: 12
How to get Yes/No buttons instead Ok/Cancel in confirm box?
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15376
You can not change the defaults of window.confirm

If you want to do that, you would have to create your own out of layers[divs].

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60800

"satyanarayana bnv", please check your private messages for an important administrative matter.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Don't get me started about those stupid light bulbs.
subject: Confirm box ok/cancel to Yes/No.
Similar Threads
Javascript: Alert Box with Yes/No Button
Can I change the buttons in a confirm alert box to 'Yes' , 'No'?
customize confirm box button text ???
Selecting Default Button in "Confirm" Box!
Java script dialog box