This week's book giveaway is in the General Computing forum.
We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line!
See this thread for details.
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
Register / Login


JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Confirm box  ok/cancel to Yes/No." Watch "Confirm box  ok/cancel to Yes/No." New topic
Author

Confirm box ok/cancel to Yes/No.

satyanarayana bnv
Greenhorn

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

Joined: Nov 08, 2001
Posts: 15362
    
    6
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].

Eric
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56530
    
  14

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


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Confirm box ok/cancel to Yes/No.
 
Similar Threads
Selecting Default Button in "Confirm" Box!
customize confirm box button text ???
Javascript: Alert Box with Yes/No Button
Java script dialog box
Can I change the buttons in a confirm alert box to 'Yes' , 'No'?