Basic I/O Commands in JavaScript

JavaScript programmers commonly use the commands shown in the following table for controlling dialog-based input and output in programs to be used on the Web.
















Element Description
alert("message");Creates a popup dialog containing "message."
stringVar = prompt("message")Send message to user in a dialog box, retrieve text input from user and store it in stringVar.







dummies

Source:http://www.dummies.com/how-to/content/basic-io-commands-in-javascript.html

No comments:

Post a Comment