aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Javascript: Alert Box with Yes/No Button Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Javascript: Alert Box with Yes/No Button" Watch "Javascript: Alert Box with Yes/No Button" New topic
Author

Javascript: Alert Box with Yes/No Button

Shriram Gopalakrishnan
Ranch Hand

Joined: Feb 20, 2007
Posts: 44
Hi
Need Javascript code to display alert box with Yes/No button. At present alert box displays only Ok Cancel.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
It is not an alert box, but a confirm box you are talking about. No you ca not change the buttons of the confirm and there is not other windowed objects like that.

There are scripts out there that build customized confirms, but they are made out of layers (divs) and they do not perform in the "wait here" until user action is complete.
Karthik Srikanti
Greenhorn

Joined: Sep 20, 2006
Posts: 11
You can use a div with a higher z-index with your own custom buttons than trying to modify the values in the custom box.

Just my two cents


{ SCJP, SCWCD, SCBCD, OCA (DBA) }
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Javascript: Alert Box with Yes/No Button
 
Similar Threads
Alert box problem
can v set TITLE to box alert box useing javascript
MsgBox()
How to create a customised alert box using javascript
Form Validation Help Needed Please