Newer Version Available
Modify the Post-Chat
After you add a post-chat URL for your chat button, you can specify
whether it automatically opens or not. Valid values are true and
false.
embedded_svc.settings.autoOpenPostChat = true; // or false
By default, your chat window gives customers the option of closing the chat or opening the post-chat URL when they end a chat. To automatically display the post-chat URL instead, set this parameter to true.