Opening Live Chat Widget With a Link

When you deploy your live chat widget to your website, typically you see a button or icon in the bottom right side of the page to open the chat box.  Sometimes you may want to open the live chat using an image button, or a text link within a header of your website, or within text in your website.   If that's the case, then read ahead.  

With our simple javascript code snippet below, you can trigger opening your chat using our simple API on any element in your web page.

Below, is the bit of javascript you can use to open the link.  Here's a link to more about the  Developer API.

<script type="text/javascript">SI_API.showPopup();</script>

To use this code from an href you can create a link as follows:

<a href="#" onclick="SI_API.showPopup();">my live chat link</a>

Finally, there are some settings you can use to hide the chat tab we provide.  This is handy if you want to activate the chat from a custom image or custom javascript event.

In your app settings, go to the targeting tab and set the following:

Action: Show Popup on Match

After Time On Page: Ignore

This will hide the tab and the After Time on Page ignores any automatic popup.  You can keep the automatic popup if you like.  It works either way!