Gets the message box return value.
Returns the following message box values:
| Message Box | Return Value |
|---|---|
| alert(text) | "undefined" |
| confirm(text) | "true" if 'OK' pressed; "false" if 'Cancel' pressed. |
| prompt(text, value) | "value" (or new value from message box) if 'OK' pressed; "null" if 'Cancel' pressed. |
The Text property is used to set the text string (shown as 'text' in the table above) that appears in the message box. The PromptValue property is used to set the initial return value for a prompt() message box. This value is shown in the text box of the message box (shown as 'value' in the table above).
MsgBox Class | BWare.UI.Web.WebControls Namespace