• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

customize confirm box button text ???

 
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...)
 
Ranch Hand
Posts: 75
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Does this tiny ad smell okay to you?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic