0

This may seem pretty basic, but a classmate of mine is learning Javascript and they keep asking me the same thing: Can I change the two buttons on Alert and Confirm methods so that they don't say "cancel" and "okay"? I guess the same would go with Prompt. Is there a way? I keep telling him no and I checked other sources but I want to be sure. Thank you in advance.

Edited by pars99

3
Contributors
3
Replies
26
Views
3 Years
Discussion Span
Last Post by Troy III
0

nope.. you are correct.

Instead you would have to go with something like jQuery UI Dialog, or just build a custom modal popup and handle the button clicks via code.

0

nope.. you are correct.

Instead you would have to go with something like jQuery UI Dialog, or just build a custom modal popup and handle the button clicks via code.

Thanks! I looked into it and it looks really nice!

0

You can emulate them using the showModalDialog('customPrompt.htm',"", "") on browsers that support it, but than you'll have to write them (code them, style them, script them) yourself completely.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.