34,333
edits
Changes
→Displaying Message Box Dialogs
<input type="button" value="Show Confirmation" onclick="showConfirmation()" />
</form>
</pre>
* '''prompt''' - designed to enable information to be obtained from the user. The dialog conists of a message to the user, a text input field for the entry of data and OK and Cancel buttons. The ''prompt()'' method takes the message to be displayed as an argument and retruns the value entered by the user: