javascript window confirm( )
| confirm( ) | NN 2 IE 3 DOM n/a |
|
confirm("message") |
|
|
Displays a dialog box with a message and two clickable buttons. Script execution halts while the dialog box appears. One button indicates a Cancel operation; the other button indicates the user's approval (OK or Yes). The text of the buttons is not scriptable. The message should ask a question to which either button would be a logical reply. A click of the Cancel button returns a value of false; a click of the OK button returns a value of true. |
|
|
Because this method returns a Boolean value, you can use this method inside a condition expression: if (confirm("Reset the entire form?")) {
|
|
| Parameters | |
|
|
| Returned Value | |
|
Boolean value: true | false. |
|
Previous: javascript window createPopup( )
2238,Nickname,Homepage or email,Comments here,Add comment
