Click or drag to resize
CfxOnJsDialogEventHandler Delegate

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

Called to run a JavaScript dialog. If |OriginUrl| is non-NULL it can be passed to the CfxFormatUrlForSecurityDisplay function to retrieve a secure and user-friendly display string. The |DefaultPromptText| value will be specified for prompt dialogs only. Set |SuppressMessage| to true (1) and return false (0) 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 |SuppressMessage| to false (0) and return false (0) 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 (1) 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: Chromium.Event
Assembly: ChromiumFX (in ChromiumFX.dll)
public delegate void CfxOnJsDialogEventHandler(
	Object sender,
	CfxOnJsDialogEventArgs e


Type: SystemObject
Type: Chromium.EventCfxOnJsDialogEventArgs
See also the original CEF documentation in cef/include/capi/cef_jsdialog_handler_capi.h.
See Also