Hover over the dummy link and look at the Status Bar
The users name is obtained by using the window.prompt() method. Default text was placed in the input field.
The user is asked to confirm the entry by using the window.confirm() method. The confirmation message uses \n at the end of the question to force the users name to appear on the next line.
An if was used to determine the validity of the entry.
The instructions were enclosed in a function and triggered by onLoad event.
The resulting message is displayed in the status bar.
Example by R. Hinton