prompt Method
Displays a dialog box that prompts the user with a message and an input field.
Syntax
vTextData = window.prompt([sMessage] [, sDefaultValue])
Parameters
sMessage Optional. String that specifies the message to display in the dialog box. By default, this parameter is set to "". sDefaultValue Optional. String that specifies the default value of the input field. By default, this parameter is set to "undefined".
Return Value
String or Integer. Returns the value typed in by the user.
Remarks
The title of this dialog box cannot be changed.
Applies To
[ Object Name ] Platform Version Win16: Win32: Mac: Unix: WinCE: Version data is listed when the mouse hovers over a link, or the link has focus. window
Did you find this topic useful? Suggestions for other topics? write us!
© 1999 microsoft corporation. all rights reserved. terms of use.