| 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: 15362
|
|
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: 56549
|
|
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 ]
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About 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
|
 |
 |
|
|
subject: changing the default confirm message box
|
|
|