prompt() (Method)

An alias for the window.prompt() method.

Availability:

JavaScript - 1.0
JScript - 1.0
Internet Explorer - 3.02
Netscape - 2.0
Opera - 3.0
Property/method value type:String primitive
JavaScript syntax:-myResult = myWindow.prompt(aString, aDefaultValue)
-myResult = prompt(aString, aDefaultValue)
Argument list:aDefaultValueAn initial content for the text box.
aStringSome text to explain what to enter

See also:Window.alert(), Window.confirm()

Refer to:

Window.prompt()