Support Center > Knowledge Base> Article: Hide live chat link when offline

Hide live chat link when offline

Article ID: 39970 Email Print
I would like to install LiveHelpNow as a link which will hide when all operators are offline.


Here are steps by step instructions:


  1. This step is only required if LiveHelpNow chat or helpOut button code is not already installed on your web page: Install invisible button code anywhere on your web page. Invisible button code may be found in Admin Panel->Chat system->installation->Live chat button->For websites.
  2. Add the HTML code to your web page for the link similar to this: <a id="lhnLiveChatLink" href="#" onclick="OpenLHNChat();return false;">Live chat</a>
  3. Add this JavaScript code to the page:

    <script type="text/javascript">
    function LHN_button_onLoad() {
    if (bLHNOnline == 0) {
    //All operators are offline
    else {
    //There are operators online
  4. Done

Related articles

Article Details
Views: 27806 Created on: Dec 17, 2013
Date updated: Sep 13, 2014

Poor Outstanding