Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

YES/NO prompt 1

Status
Not open for further replies.

JohnSwe

Programmer
Feb 20, 2001
14
SE
Is it possible to use a yes/no promt? Whats the command?
 
prompt(message[, inputDefault])

Example:

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>
<!--
var vCookies = prompt(&quot;Enter the number of cookies you want to order:&quot;, 12)

document.write(&quot;You want to order &quot; + vCookies + &quot; cookies.&quot;);
//-->
</SCRIPT>
- tleish
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top