Share via


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. This value is ignored for @CoreWebView2ScriptDialogOpeningEventArgs.Kind$s other than @CoreWebView2ScriptDialogKind$.Prompt. If @CoreWebView2ScriptDialogOpeningEventArgs.Accept is not run, this value is ignored and false is returned from prompt.

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 Deferral object. Use this to Complete the event at a later time.

Applies to