Class JavascriptDialogOpeningEventArgs
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
public sealed record JavascriptDialogOpeningEventArgs : EventArgs, IEquatable<EventArgs>, IEquatable<JavascriptDialogOpeningEventArgs>
- Inheritance
-
EventArgsJavascriptDialogOpeningEventArgs
- Implements
-
IEquatable<EventArgs>
- Inherited Members
-
EventArgs.ToString()EventArgs.GetHashCode()EventArgs.Equals(EventArgs)EventArgs.<Clone>$()EventArgs.BiDiEventArgs.AdditionalDataEventArgs.AdditionalMessageData
Constructors
JavascriptDialogOpeningEventArgs(string, FrameId, string, DialogType, bool, string?)
Fired when a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload) is about to open.
public JavascriptDialogOpeningEventArgs(string Url, FrameId FrameId, string Message, DialogType Type, bool HasBrowserHandler, string? DefaultPrompt = null)
Parameters
UrlstringFrame url.
FrameIdFrameIdFrame id.
MessagestringMessage that will be displayed by the dialog.
TypeDialogTypeDialog type.
HasBrowserHandlerboolTrue 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.
DefaultPromptstringDefault dialog prompt.
Properties
DefaultPrompt
Default dialog prompt.
public string? DefaultPrompt { get; init; }
Property Value
FrameId
Frame id.
public FrameId FrameId { get; init; }
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.
public bool HasBrowserHandler { get; init; }
Property Value
Message
Message that will be displayed by the dialog.
public string Message { get; init; }
Property Value
Type
Dialog type.
public DialogType Type { get; init; }
Property Value
Url
Frame url.
public string Url { get; init; }