Home > Technical Support > Tips & Tricks > How to pause a script execution

How to pause a script execution

Imagine the situation you want to change the color of the element you can't inspect the right way because of the script execution goes on the background of the website. So you can't catch it and find the correct Class or ID of the element that you wish to change the color for.

The solution would be to pause script execution. Press F12 or Control+Shift+I and use the following screenshots showing you the workaround =

 

 




After when you know the correct class/ID, go to your LiveAgent account dashboard -> Chat -> Chat buttons -> edit the desired chat button -> Chat window -> set custom CSS (the below one is an example but can be used)

.MessageNotification.MessageNotification-Unread.MessageNotificationTypeM {
background: #ffff00;
}

.chatMessagesGroupAgent .messagesPanel .MessageNotification.MessageNotification-Unread:first-child:before {
border-left-color: #ffff00;
}

And see the result below here ->

These instructions you can follow in case you have a similar case. 

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