Dialog¶
type Dialog =
| {
mainFrame?: boolean;
message: string;
type: "alert" | "confirm";
url: string;
}
| {
defaultValue: string | null;
mainFrame?: boolean;
message: string;
type: "prompt";
url: string;
};
A page's alert, confirm or prompt, for dialogs.
Union Members
Type Literal
mainFrame?
iOS
Whether the main frame opened it.
message
type
url
The URL of the frame that opened it.
Type Literal
defaultValue
The prompt's default text.
mainFrame?
iOS
Whether the main frame opened it.
message
type
url
The URL of the frame that opened it.