This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

customize confirm box button text ???

 
verduka fox
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I customize the text on the buttons in a javascript confirm box? I want the buttons to say "Yes" and "No", not "OK" and "Cancel". How do I do this? Is it possible?
Also, is there any way to change the graphic on the confirm box? I think the default graphic on confirm box is a question mark. Is there any way to make this a more critical graphic?
Thanks for your help!
 
Tony Alicea
Desperado
Sheriff
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My answer to the first question is "I doubt it".
As for the second question, the (http://www.w3.org/TR/1998/REC-html40-19980424/interact/forms.html#edef-BUTTON") W3C says YES (almost).
But only if you generate your own dialog box (with the window.open() method...)
 
Vinod Kumar
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Verduka,
Have you tried changing the graphics (instead of ?) on the confirm box?
Is it possible to change the caption of alert or conifrmation box?
Thanks in Advace,
Vinod
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can not do it without using layers or another window.
There are languages like VB that can do it, but that is a whole differetn story.
Eric
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic