Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Confirm with Yes/No

Status
Not open for further replies.

bill1one

Programmer
Sep 29, 2004
93
0
0
US
I am trying to make a simple confirm box that would display "Yes" and "No" on the buttons. All I get is the Ok/Cancel combination.

How can this be done or can it be done?

Thanks.
 
You cannot do this with the system-provided confirm box using JavaScript. There's a small chance that it may be possible in VBScript (but that would limit it to working in IE only, if it is possible at all), so if you want to rename the buttons, your best bet is to write a custom DHTML version, or try for some sort of modal dialog (which will not be fully cross-browser).

Basically, you're better off rewording your text to take into account the buttons say "OK" and "Cancel".

Dan

[tt]Dan's Page [blue]@[/blue] Code Couch
[/tt]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top