PageClientHandleJavaScriptDialogAsync Method  | 
Version 93.1.111 
            Accepts or dismisses a JavaScript initiated dialog (alert, confirm, prompt, or onbeforeunload).
            
 
    Namespace: 
   CefSharp.DevTools.Page
    Assembly:
   CefSharp (in CefSharp.dll) Version: 93.1.111.0 (93.1.111.0)
Syntaxpublic Task<DevToolsMethodResponse> HandleJavaScriptDialogAsync(
	bool accept,
	string promptText = null
)
public:
Task<DevToolsMethodResponse^>^ HandleJavaScriptDialogAsync(
	bool accept, 
	String^ promptText = nullptr
)
Parameters
- accept
 - Type: SystemBoolean
Whether to accept or dismiss the dialog. - promptText (Optional)
 - Type: SystemString
The text to enter into the dialog prompt before accepting. Used only if this is a promptdialog. 
Return Value
Type: 
TaskDevToolsMethodResponsereturns System.Threading.Tasks.Task<DevToolsMethodResponse>
See Also