Compartir a través de


CoreWebView2ScriptDialogOpeningEventArgs.Accept Method

Definition

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

public void Accept ();
member this.Accept : unit -> unit
Public Sub Accept ()

Remarks

From JavaScript, this means that the confirm function and beforeunload event returns true if Accept is run. And for the prompt function it returns the value of ResultText if Accept is run and otherwise returns false.

Applies to