Detect state of widget on page

If you need to check on a page where is included any LiveAgent widget if the widget is opened or not, you can use following javascript function:

LiveAgent.instance.hasOpenedWidget();

A function returns true if any widget on the page is opened (e.g. from chat button included in your page was started chat), otherwise returns false.

1. Example (widget closed)

 

 

2. Example - widget opened:

Ready to try LiveAgent?

It's free for the first 14 days! No credit card required.

Get Started
We work well with others...
Magento Joomla Wordpress Mailchimp
Contact us

support@liveagent.com

+1-800-811-6590 (Toll Free in USA & Canada)

+421 2 33 456 826 (European Union & Worldwide)

Quality Unit, LLC 616 Corporate Way, Suite 2-3278 Valley Cottage, NY 10989

Stay in touch
Blog Google+
© 2004-2020 LiveAgent.com, All rights reserved