Class JavascriptDialogOpeningEventArgs
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
public sealed class JavascriptDialogOpeningEventArgs : EventArgs
- Inheritance
-
JavascriptDialogOpeningEventArgs
- Inherited Members
Properties
DefaultPrompt
Default dialog prompt.
[JsonPropertyName("defaultPrompt")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingDefault)]
public string? DefaultPrompt { get; set; }
Property Value
FrameId
Frame id.
[JsonPropertyName("frameId")]
public string FrameId { get; set; }
Property Value
HasBrowserHandler
True iff browser is capable showing or acting on the given dialog. When browser has no dialog handler for given target, calling alert while Page domain is engaged will stall the page execution. Execution can be resumed via calling Page.handleJavaScriptDialog.
[JsonPropertyName("hasBrowserHandler")]
public bool HasBrowserHandler { get; set; }
Property Value
Message
Message that will be displayed by the dialog.
[JsonPropertyName("message")]
public string Message { get; set; }
Property Value
Type
Dialog type.
[JsonPropertyName("type")]
public DialogType Type { get; set; }
Property Value
Url
Frame url.
[JsonPropertyName("url")]
public string Url { get; set; }