HBCMS更多的中文手册参考:

prompt Method

DHTML文档教程

Displays a dialog box that prompts the user with a message and an input field.

dhtml语法

vTextData = window.prompt( [sMessage] [, sDefaultValue])

Parameters

sMessage Optional. Stringthat specifies the message to display in the dialog box. By default, this parameter is set to "".
sDefaultValue Optional. Stringthat 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.

是否符合公共标准

This method is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

window