Java Reference
In-Depth Information
Dialogs
Library
The
Dialogs
library contains a set of typical user-interface functions.
G
alert()
—The
alert
Function
alert(
message
)
Displays a message for the user and awaits a confirmation.
confirm()
—The
confirm
Function
confirm(
message
, ok, cancel)
Displays a message to the user with OK and Cancel buttons on the dialog box.
prompt()
—The
prompt
Function
prompt(
message
,
defaultInput
)
Prompts the user to input content before proceeding.
defaultInput
can be used to populate
the box with a default value.