0

When I try to embed This code it works fine but in external window not as a popup in the page Could you help?

<body >

<h1>Cookbook Bot</h1>

`enter code here`<a id="liveagent_button_online_573B0000000112K" href="javascript://Chat" style="display: none;" onclick="liveagent.startChat('573B0000000112K')">Online Chat</a>
<div id="liveagent_button_offline_573B0000000112K" style="display: none;">Chat is offline </div><script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('573B0000000112K', document.getElementById('liveagent_button_online_573B0000000112K'));
liveagent.showWhenOffline('573B0000000112K', document.getElementById('liveagent_button_offline_573B0000000112K'));
});</script>

<script type='text/javascript' src='https://c.gla3-phx.gus.salesforce.com/content/g/js/42.0/deployment.js'></script>
<script type='text/javascript'>
liveagent.init('https://d.gla3-phx.gus.salesforce.com/chat', '572B0000000513C', '00DB0000000LgOe');
</script>

</body>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.