confirm(message, [window])
Description:
Displays a confirmation dialog to user and returns user's response as boolean.
Parameters:
| Name | Type | Default | Description |
|---|---|---|---|
|
|
string |
Message to display to user |
|
|
|
null |
Window which dialog window will overlay. |
Returns:
Returns true if user confirms the message, or false otherwise.
Type: boolean
Examples:
if(confirm("Delete this file?", this))
{
// delete code
}
