Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

changing the default confirm message box

 
Abhishek Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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'.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You would have to develop your own out of layers.

Eric
 
Abhishek Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 64838
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Abhishek Kumar
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I told i know that i need to create one but what i want is a sample code if u can provide
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic