my dog learned polymorphism*
The moose likes HTML, CSS and JavaScript and the fly likes Regarding Customising Window.confirm Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Regarding Customising Window.confirm" Watch "Regarding Customising Window.confirm" New topic
Author

Regarding Customising Window.confirm

Karne Reddy
Ranch Hand

Joined: May 28, 2006
Posts: 35
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


asdfa
Eric Pascarello
author
Rancher

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

Joined: Jun 22, 2006
Posts: 21
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Regarding Customising Window.confirm
 
Similar Threads
javascript confirm pop up
[struts 2] Use Javascript confirm() dialog
How to program an OK/Cancel box in JavaScript?
Confirm box ok/cancel to Yes/No.
Popup window Navigation