JavaScript Demo 1: Common Methods

This demo shows the use of the alert(), prompt(), and confirm() JavaScript methods.

Note: Each button calls a user defined function that in turn calls a built-in JavaScript method. The last one has a while loop that repeats until the user clicks OK in the confirm dialog.