CoreWebView2ScriptDialogOpeningEventArgs.Accept Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
.