May 23, 2001 #1 JohnSwe Programmer Feb 20, 2001 14 SE Is it possible to use a yes/no promt? Whats the command?
May 23, 2001 #2 tleish Programmer Jan 17, 2001 619 US prompt(message[, inputDefault]) Example: <SCRIPT LANGUAGE="JavaScript"> <!-- var vCookies = prompt("Enter the number of cookies you want to order:", 12) document.write("You want to order " + vCookies + " cookies." //--> </SCRIPT> - tleish Upvote 0 Downvote
prompt(message[, inputDefault]) Example: <SCRIPT LANGUAGE="JavaScript"> <!-- var vCookies = prompt("Enter the number of cookies you want to order:", 12) document.write("You want to order " + vCookies + " cookies." //--> </SCRIPT> - tleish
May 23, 2001 1 #3 jaredn Programmer Sep 1, 1999 1,506 US or, hey may have meant confirm: booleanResponse = confirm("Are you sure?" this will give them an OK/Cancel option. If you want to use a Yes/No combination, you will have to use (IE only): http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showModalDialog.asp jared@eae.net - http://webfx.eae.net Upvote 0 Downvote
or, hey may have meant confirm: booleanResponse = confirm("Are you sure?" this will give them an OK/Cancel option. If you want to use a Yes/No combination, you will have to use (IE only): http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/showModalDialog.asp jared@eae.net - http://webfx.eae.net
May 23, 2001 Thread starter #4 JohnSwe Programmer Feb 20, 2001 14 SE Thats it! Thanks. :=) Upvote 0 Downvote