CefJSDialogHandler OnJSDialog Method Xilium.CefGlue

[This is preliminary documentation and is subject to change.]

Called to run a JavaScript dialog. The |default_prompt_text| value will be specified for prompt dialogs only. Set |suppress_message| to true and return false to suppress the message (suppressing messages is preferable to immediately executing the callback as this is used to detect presumably malicious behavior like spamming alert messages in onbeforeunload). Set |suppress_message| to false and return false to use the default implementation (the default implementation will show one modal dialog at a time and suppress any additional dialog requests until the displayed dialog is dismissed). Return true if the application will use a custom dialog or if the callback has been executed immediately. Custom dialogs may be either modal or modeless. If a custom dialog is used the application must execute |callback| once the custom dialog is dismissed.

Namespace: Xilium.CefGlue
Assembly: Xilium.CefGlue (in Xilium.CefGlue.dll) Version: 3.2272.2035.0 (3.2272.2035.0)
Syntax

protected abstract bool OnJSDialog(
	CefBrowser browser,
	string originUrl,
	string acceptLang,
	CefJSDialogType dialogType,
	string message_text,
	string default_prompt_text,
	CefJSDialogCallback callback,
	out bool suppress_message
)

Parameters

browser
Type: Xilium.CefGlue CefBrowser

[Missing <param name="browser"/> documentation for "M:Xilium.CefGlue.CefJSDialogHandler.OnJSDialog(Xilium.CefGlue.CefBrowser,System.String,System.String,Xilium.CefGlue.CefJSDialogType,System.String,System.String,Xilium.CefGlue.CefJSDialogCallback,System.Boolean@)"]

originUrl
Type: OnlineSystem String

[Missing <param name="originUrl"/> documentation for "M:Xilium.CefGlue.CefJSDialogHandler.OnJSDialog(Xilium.CefGlue.CefBrowser,System.String,System.String,Xilium.CefGlue.CefJSDialogType,System.String,System.String,Xilium.CefGlue.CefJSDialogCallback,System.Boolean@)"]

acceptLang
Type: OnlineSystem String

[Missing <param name="acceptLang"/> documentation for "M:Xilium.CefGlue.CefJSDialogHandler.OnJSDialog(Xilium.CefGlue.CefBrowser,System.String,System.String,Xilium.CefGlue.CefJSDialogType,System.String,System.String,Xilium.CefGlue.CefJSDialogCallback,System.Boolean@)"]

dialogType
Type: Xilium.CefGlue CefJSDialogType

[Missing <param name="dialogType"/> documentation for "M:Xilium.CefGlue.CefJSDialogHandler.OnJSDialog(Xilium.CefGlue.CefBrowser,System.String,System.String,Xilium.CefGlue.CefJSDialogType,System.String,System.String,Xilium.CefGlue.CefJSDialogCallback,System.Boolean@)"]

message_text
Type: OnlineSystem String

[Missing <param name="message_text"/> documentation for "M:Xilium.CefGlue.CefJSDialogHandler.OnJSDialog(Xilium.CefGlue.CefBrowser,System.String,System.String,Xilium.CefGlue.CefJSDialogType,System.String,System.String,Xilium.CefGlue.CefJSDialogCallback,System.Boolean@)"]

default_prompt_text
Type: OnlineSystem String

[Missing <param name="default_prompt_text"/> documentation for "M:Xilium.CefGlue.CefJSDialogHandler.OnJSDialog(Xilium.CefGlue.CefBrowser,System.String,System.String,Xilium.CefGlue.CefJSDialogType,System.String,System.String,Xilium.CefGlue.CefJSDialogCallback,System.Boolean@)"]

callback
Type: Xilium.CefGlue CefJSDialogCallback

[Missing <param name="callback"/> documentation for "M:Xilium.CefGlue.CefJSDialogHandler.OnJSDialog(Xilium.CefGlue.CefBrowser,System.String,System.String,Xilium.CefGlue.CefJSDialogType,System.String,System.String,Xilium.CefGlue.CefJSDialogCallback,System.Boolean@)"]

suppress_message
Type: OnlineSystem Boolean 

[Missing <param name="suppress_message"/> documentation for "M:Xilium.CefGlue.CefJSDialogHandler.OnJSDialog(Xilium.CefGlue.CefBrowser,System.String,System.String,Xilium.CefGlue.CefJSDialogType,System.String,System.String,Xilium.CefGlue.CefJSDialogCallback,System.Boolean@)"]

Return Value

Type: OnlineBoolean

[Missing <returns> documentation for "M:Xilium.CefGlue.CefJSDialogHandler.OnJSDialog(Xilium.CefGlue.CefBrowser,System.String,System.String,Xilium.CefGlue.CefJSDialogType,System.String,System.String,Xilium.CefGlue.CefJSDialogCallback,System.Boolean@)"]

See Also