CoreWebView2ScriptDialogOpeningEventArgs Class

Definition

Event args for the ScriptDialogOpening event.

public class CoreWebView2ScriptDialogOpeningEventArgs
public class CoreWebView2ScriptDialogOpeningEventArgs : EventArgs
type CoreWebView2ScriptDialogOpeningEventArgs = class
type CoreWebView2ScriptDialogOpeningEventArgs = class
    inherit EventArgs
Public Class CoreWebView2ScriptDialogOpeningEventArgs
Public Class CoreWebView2ScriptDialogOpeningEventArgs
Inherits EventArgs
Inheritance
CoreWebView2ScriptDialogOpeningEventArgs
Inheritance
CoreWebView2ScriptDialogOpeningEventArgs

Properties

DefaultText

Gets the default value to use for the result of the prompt JavaScript function.

Kind

Gets the kind of JavaScript dialog box.

Message

Gets the message of the dialog box.

ResultText

Gets or sets the return value from the JavaScript prompt function if Accept() is run.

Uri

Gets the URI of the page that requested the dialog box.

Methods

Accept()

Responds with OK to confirm, prompt, and beforeunload dialogs. Not run this method to indicate cancel.

GetDeferral()

Gets a CoreWebView2Deferral object.

Applies to