File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes changing the default confirm message box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "changing the default confirm message box" Watch "changing the default confirm message box" New topic
Author

changing the default confirm message box

Abhishek Kumar
Ranch Hand

Joined: Dec 19, 2005
Posts: 52
Hi Everybody,

I want to put a confirm on my page. But instead of buttons that read 'ok' and 'cancel' i want them to read 'I Agree' and 'I do not agree'.


Thanks and Regards,

Abhishek Kumar
Software developer (Apps),
Arbor Networks.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
You would have to develop your own out of layers.

Eric
Abhishek Kumar
Ranch Hand

Joined: Dec 19, 2005
Posts: 52
hi eric,

after searching in net even i concluded the same but i didnt have any idea how to write it.i need some help like source code of default confirm() method of javascript.I will write the same with changing the name of the buttons
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61413
    
  67

You cannot replace or add another confirm dialog. Like Eric said, you'll need to mimic one by floating a div over the page controlled with CSS and Javascript.
[ February 16, 2006: Message edited by: Bear Bibeault ]

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Abhishek Kumar
Ranch Hand

Joined: Dec 19, 2005
Posts: 52
I told i know that i need to create one but what i want is a sample code if u can provide
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: changing the default confirm message box