Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
07-06-2006, 10:12 PM #1
- Join Date
- Jul 2006
- Thanked 0 Times in 0 Posts
Newbie: Can text of js confirm() buttons be changed?
New to js, but an old-dog programmer...
Am used to VB or the X Window System where I configure these things "8-ways for Sunday".
All I need is "Yes" and "No" vs. "Ok" and "Cancel", but all I ever see are simple `confirm("Who's your Daddy?")-type examples, otherwise you must write your own.`
The OO-programmer in me says there's got to be a way to get at this stuff, but I haven't found a trail...
Is it true these cannot be changed, or have I just not RTFM'd the right manual? (If so, where is THAT manual?)
Say it ain't so (please)!
Thanks in advance.
07-06-2006, 10:35 PM #2
- Join Date
- Jul 2005
- New York, NY
- Thanked 19 Times in 19 Posts
You cannot modify these modal windows as they are part of the browser, not part of your application. Basically, you're making a call to your environment, which is the browser. The browser considers it a security violation to modify things of this nature, as you can fool users into doing things they wouldn't otherwise do.
Sorry, you're stuck with the same Ok/Cancel.