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 Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Yes/No Confirm

Status
Not open for further replies.

DisgruntledWorker

Technical User
Nov 8, 2004
5
US
Hello all, first time here. I'm looking for some help getting a confirm box that asks "yes" or "no" instead of "OK" or "Cancel". It would also be nice to be able to change the box header and icon like you can do in VB. any advice? TIA
 
Hehehe, wouldn't that be nice?
There is no easy way to change the box. Ways could include styling one yourself and opening with showModalDialog() in IE, or including a div styled that way with display:none; until called upon.

No, there is no way to edit the confirm("Text") function.

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 
No problem. This might be possible with a Java applet, I know you can use
Code:
JOptionPane.showConfirmDialog(null,"My message","My title",JOptionPane.YES_NO_OPTION,JOptionPane.PLAIN_MESSAGE);
to pop up a plain message with yes/no as options.

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 
They're not popups. This would appear in an applet.

--Chessbot

"See the TURTLE of enormous girth!"
-- Stephen King, The Dark Tower series
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top