Dialogue Cloud

WebChat Loaded Event

Note

An additional AnywhereNow WebAgent for Omnichannel license is required.

Note

An Enterprise license or higher is required to access these features.

After loading successfully, the AnywhereNow WebChat will dispatch a WebChatLoaded event on window. You can use an event listener on window before calling WebChat.load to catch this event and run additional code. At this point the AnywhereNow WebChat has been fully loaded and started. Example:

Copy
Script
window.addEventListener('WebChatLoaded', function() {
// your code here
});