Click To Call Action
Using Button API Developer can launch Pre-Chat form or offline message form on clicking any button or hyperlink of any website.
$_REVECHAT_API(function(){ … });
Chat Script Insert
Insert the following chat script into website and replace your operator code/account id
<script type='text/javascript'>
window.$_REVECHAT_API || (function(d, w) { var r = $_REVECHAT_API = function(c) {r._.push(c);}; w.__revechat_account='YOUR_ACCOUNT_ID';w.__revechat_version=2;
r._= []; var rc = d.createElement('script'); rc.type = 'text/javascript'; rc.async = true; rc.setAttribute('charset', 'utf-8');
rc.src = ('https:' == document.location.protocol ? 'https://' : 'http://')+'static.revechat.com'+'/widget/scripts/new-livechat.js?'+new Date().getTime();
var s = d.getElementsByTagName('script')[0]; s.parentNode.insertBefore(rc, s);
})(document, window);
</script>
Audio/Video Call
Paste following code snippet into webpage
<a href='#' id='revechatCtCButton' onclick="$_REVECHAT_API['Button'] && $_REVECHAT_API.Button.startVoiceCall()"> <img style='height: 130px; width: 130px;' src='https://static.revechat.com/client/images/click-to-call-audio.png' data-toggle="modal" data-target="#exampleModal" data-whatever="@mdo" />
Chat Window Launch upon Clicking A Link
→ Insert chat script into website first
→ insert following html code into any section of your website
Paste following code snippet into webpage
<a href="javascript:void($_REVECHAT_API && $_REVECHAT_API['Button'] &&$_REVECHAT_API.Button.maximize())">chat with us</a>
Any questions? Please email us at [email protected]
Last updated
Was this helpful?