# JsDialogTypeRegex

A regular expression that must match the dialog type for a dialog to be handled. You can specify:

- `Alert` - dialogs generated by the `alert()` method, which typically consist of a message and an "OK" button.
- `Confirm` - dialogs generated by the `confirm()` method, which typically consist of a message with "OK" and "Cancel" buttons.
- `Prompt` - dialogs generated by the `prompt()` method, which typically consist of a message, a text input box, and "OK" and "Cancel" buttons.
- `BeforeUnload` - a dialog presented by a `beforeunload` event handler.

Type: | Regular expression
Default: | `.*` (all types)
Required: | No
Configuration Section: | Any section specified by JsDialogSections, or TaskName
Example: | `JsDialogTypeRegex=Prompt`
See Also: | JsDialogMessageRegex JsDialogUrlRegex

_FT_HTML5_bannerTitle.htm