TTMSFNCWebBrowserScriptDialogOpeningParams Record
Parameters passed to
OnScriptDialogOpeningwhen the page triggers a JavaScript dialog. SetAcceptandResultTextto handle the dialog programmatically.
API unit family: TMSFNCWebBrowser
Syntax
TTMSFNCWebBrowserScriptDialogOpeningParams = record
Fields and properties
| Name | Type | Description |
|---|---|---|
Accept |
Boolean |
Set to True to accept (OK) the dialog; False to dismiss (Cancel) it. |
DefaultText |
String |
Default text pre-filled in a prompt() input field; empty for other dialog kinds. |
DialogKind |
TTMSFNCWebBrowserScriptDialogKind |
Kind of JavaScript dialog. See TTMSFNCWebBrowserScriptDialogKind. |
DialogMessage |
String |
Message text shown in the dialog. |
ResultText |
String |
For prompt() dialogs, set this to the text the user would have entered; ignored for other dialog kinds. |
URL |
String |
URL of the page that triggered the dialog. |