HOME   >Conversations

How to trigger the chat window to open from a custom button on your website

If you want to open the chat window from a button or link on your website you can easily achieve this with the onclick html tag. Apply the onclick="toggleYonderChat()" to your desired element.

For example:

<button onclick="toggleYonderChat()">Chat with us</button>

Or if you are using an <a> element follow the example below:

<a onclick="toggleYonderChat()">Chat with us</a>