prompt()

This method is used to display a dialog box with a message specified by you, the author. The text area is only one line long, with two clickable buttons which are labeled CANCEL and OK. Clicking the cancel button will return a NULL string. Clicking the OK button will return whatever is in the text area at the time.

syntax:

Prompt (text area , string to be returned)

Internet Explorer:

Netscape Navigator:

window