Home | Chat with init button

Front Chat

This example includes an Init button to reload after clearing the session



Code used on this page:

<button onclick="initFrontChat()">Init chat</button>
<script src="https://chat-assets.frontapp.com/v1/chat.bundle.js" onload="initFrontChat()" async></script>
<script>
  function initFrontChat() {
    window.FrontChat('init', {chatId: '313b16a4ee3b065a1087434ad39653a9', useDefaultLauncher: true});
    setTimeout(function(){
      window.FrontChat('show');
    }, 1000);
  };
</script>