prompt Method Internet Development Index --------------------------------------------------------------------------------Displays a dialog box that prompts the user with a message and an input field.SyntaxvTextData = window.prompt( [sMessage] [, sDefaultValue]) ParameterssMessage 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 ValueString or Integer. Returns the value typed in by the user.ResThe title of this dialog box cannot be changed.所以不可以调.
ParameterssMessage 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 ValueString or Integer. Returns the value typed in by the user.ResThe title of this dialog box cannot be changed.所以不可以调.
至于参数,LZ自己在网上找找吧,很多的
这就有个