471,073 Members | 1,362 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,073 software developers and data experts.

finestra di messaggio con pulsante

Come si inseriscono pulsanti particolari ( ad esempio OK,VA
BENE,CANCELLA,ANNULLA,SI,NO...) in un alert ?

Ad esempio:

alert("Posso entrare?")
if (confirm("Possiamo entrare?"))
alert("Auguri!");
else
alert('Allora vaffanculo!');

La finestra che compare contiene i pulsanti OK e ANNULLA , io vorrei i
pulsanti SI e NO .

Ciao e grazie
Jul 23 '05 #1
1 1940


Gabriele wrote:
Come si inseriscono pulsanti particolari ( ad esempio OK,VA
BENE,CANCELLA,ANNULLA,SI,NO...) in un alert ?

Ad esempio:

alert("Posso entrare?")
if (confirm("Possiamo entrare?"))
alert("Auguri!");
else
alert('Allora vaffanculo!');

La finestra che compare contiene i pulsanti OK e ANNULLA , io vorrei i
pulsanti SI e NO .


You cannot change the buttons in an alert or confirm dialog. However
with MS IE you can build dialogs with HTML and show them with
window.showModalDialog('dialog.html', args, features)
so for that browser you could create your own dialogs as needed.
Documentation is here:
http://msdn.microsoft.com/library/de...odaldialog.asp

And I have only been guessing what your question is about.

--

Martin Honnen
http://JavaScript.FAQTs.com/
Jul 23 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by giancaMI | last post: by
3 posts views Thread by Augusto | last post: by
6 posts views Thread by max(01)* | last post: by
5 posts views Thread by max(01)* | last post: by
4 posts views Thread by Fabrizio | last post: by
5 posts views Thread by A.Dagostino | last post: by
5 posts views Thread by Ale | last post: by
reply views Thread by | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.