May 23, 2001 #1 JohnSwe Programmer Joined Feb 20, 2001 Messages 14 Location SE Is it possible to use a yes/no promt? Whats the command?
May 23, 2001 #2 tleish Programmer Joined Jan 17, 2001 Messages 619 Location 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 Joined Sep 1, 1999 Messages 1,506 Location 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 Joined Feb 20, 2001 Messages 14 Location SE Thats it! Thanks. :=) Upvote 0 Downvote