Click or drag to resize

CefJSDialogHandlerOnJSDialog Method

Called to run a JavaScript dialog. If |origin_url| is non-empty it can be passed to the CefFormatUrlForSecurityDisplay function to retrieve a secure and user-friendly display string. 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:  Internal.Xilium.CefGlue
Assembly:  NeoAxis.Core (in NeoAxis.Core.dll) Version: 2024.1.1.0 (2024.1.1.0)
Syntax
C#
protected abstract bool OnJSDialog(
	CefBrowser browser,
	string originUrl,
	CefJSDialogType dialogType,
	string message_text,
	string default_prompt_text,
	CefJSDialogCallback callback,
	out bool suppress_message
)

Parameters

browser
Type: Internal.Xilium.CefGlueCefBrowser
originUrl
Type: SystemString
dialogType
Type: Internal.Xilium.CefGlueCefJSDialogType
message_text
Type: SystemString
default_prompt_text
Type: SystemString
callback
Type: Internal.Xilium.CefGlueCefJSDialogCallback
suppress_message
Type: SystemBoolean

Return Value

Type: Boolean
See Also