Chatway Chatway
  • Home
  • Product
  • Pricing
  • Built For
  • Resources
    • Help Center
    • Blog
    • Integrations
    • Social Media Buttons
    • Glossary
  • What’s New
  • Sign In →
Sign In Sign Up for Free Free Sign Up

How to show or hide the Chatway icon using Javascript

  • Help Center >
  • For developers >
  • How to show or hide the Chatway icon using Javascript

In this guide, we will show you the simple and easy-to-follow steps on how you can show or hide the Chatway icon using Javascript.

This feature is very helpful so you can give the option to your site visitors to chat with you anywhere on your website and hide the icon at any time. You can apply the Javascript function on a button or an image for easy access.

How to show the Chatway icon

To open the Chatway icon using a button click, start by adding a button then add the code below as the link:

javascript:$chatway.showChatwayIcon();

Click below to see how it works:

(if the Chatway icon is currently open, please hide it first by clicking here)

Show Chatway icon

You can also just add the code directly as a link:

Show Chatway icon

How to hide the Chatway icon

To hide the Chatway icon, just follow the same steps above but use the Javascript function below.

javascript:$chatway.hideChatwayIcon();

Click below to see how it works:

Hide the Chatway icon

Hide Chatway icon

If you want to hide the Chatway icon in order to launch the widget through your custom button, you can also use the custom CSS code below:

.chatway--container .chatway--trigger-container {
  display: none
}

How to hide the Chatway icon by default

If you want to hide the Chatway icon by default, you can add the script below to your site header.

<script>
  window.$chatwayOnLoad = function() {
    if (window.$chatway && typeof window.$chatway.hideChatwayIcon === 'function') {
      window.$chatway.hideChatwayIcon();
    }
  };
</script>

That’s it! Easy as 1,2,3 ☺️

You can also check this guide on how to open or close the Chatway widget using Javascript here.

Plans That Fit Every Stage of Your Growth

Start free and upgrade as your needs expand. Whether you’re working solo, leading a team, or scaling big, we’ve got a plan built for you.

Sign Up for Free

No Credit Card Required

Chatway essential features
Capterra Capterra 2 Grid Leader Grid Leader High performancer 1 High performancer 2 High performancer 3 High performancer 4 High performancer 5 GetApp Customer Support
chatway footer logo

Improve live chat communication and unlock customer satisfaction with Chatway

app store logo play store logo
5 stars reviews
1,000+ Five-Star Reviews on iOS & android app stores

Company

  • About Us
  • Privacy Policy
  • GDPR
  • Terms of Service
  • Pricing

Resources

  • Contact Us
  • Integrations
  • Built For
  • Help Center
  • Comparison Page

© 2026 Chatway. All rights reserved.

GDPR icon
Accessibility Adjustments

Powered byOneTap

How long do you want to hide the toolbar?
Hide Toolbar Duration
Select your accessibility profile
Vision Impaired Mode
Enhances website's visuals
Seizure Safe Profile
Clear flashes & reduces color
ADHD Friendly Mode
Focused browsing, distraction-free
Blindness Mode
Reduces distractions, improves focus
Epilepsy Safe Mode
Dims colors and stops blinking
Content Modules
Font Size

Default

Line Height

Default

Color Modules
Orientation Modules