Javascript "confirm" message boxes
Is there a way to customize them? This simple construction works perfectly for what I'm trying to do, except that I'd rather have the buttons say something other than "OK" and "Cancel". What I really need is "Yes" and "No" buttons; I can word the message in such a way that "OK" and "Cancel" make some sense, but it's pretty awkward wording.
I could bring up a regular old window to ask the question, but then I have to worry about passing parameters back and forth, etc.. confirm() is just so much handier...
Kristen
http://www.RewardsLookup.com and
http://www.cancerdrugfeedback.net still under early development
Personal page:http://www.isd.net/kwong/kristen.html
John Pollock posted this at 23:11 — 3rd August 2000.
He has: 628 posts
Joined: Mar 1999
Hehe, we just had a discussion like that on alerts. You can take a look at it as it might get close. Not sure about JavaScript, but VBscript allows it.
Here is a link to that discussion:
http://www.javascriptcity.com/forums/showthread.php3?threadid=303&pagenumber=1
Hope it helps out in some way.
Java Script: A Beginner's Guide
Page Resource
KLWong posted this at 14:43 — 4th August 2000.
They have: 135 posts
Joined: Apr 2000
Yes, it helps a lot to know that (a) it just can't be done in JavaScript and (b) that I now have another resource for finding answers to my JavaScript questions. Looks like a busy board!
I guess when I have some "slow time" (yeah, right) I'll look into implementing an intermediate window to query the user.
Thanks!
Kristen
http://www.RewardsLookup.com and
http://www.cancerdrugfeedback.net still under early development
Personal page:http://www.isd.net/kwong/kristen.html
John Pollock posted this at 15:16 — 4th August 2000.
He has: 628 posts
Joined: Mar 1999
Sure thing, glad it helped.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.