Dialogue Cloud

WebChat Loaded Event

Note Additional Anywhere365 WebAgent license required.

Note Enterprise license and higher

After loading successfully, the Anywhere365 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 Anywhere365 WebChat has been fully loaded and started. Example:

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