• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Regarding Customising Window.confirm

 
Karne Reddy
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
  • 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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • 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
 
Roy Ivar Moe
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic