• 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

Regarding Customising Window.confirm

 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Friends,

Can any one can throw some light on customisation of window.confirm()

function. I want Yes and No instead of Ok and Cancel.


-------------

SCJP1.4, SCWCD1.4
 
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 change the properties of it. You would have to code your own from layers if you want to do that.

Eric
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Maybe you want to redefine window.confirm all together....?

I've written down an example of how you can redefine window.alert here:

http://www.moedata.biz/blog

My example has extensive use of libraries, so the example itself might not be that useful for you, but the concept of redefining is described and there's a link in the post to some simpler code.

Regards,
Roy

[ August 17, 2006: Message edited by: Roy Ivar Moe ]
[ August 17, 2006: Message edited by: Roy Ivar Moe ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic