Add onlick to button

Hi


I have this page which is currently hidden the website:


I want a way of pressing the button will do the action i need, which is open the chat module.


  • If i had HTML module with this code: <h2 class="chat" onclick="chatButton.onClick();">Start chat</h2>

Then it will appear there the text Start Chat, if i press the chat will pop up.


But I wanted to do it with the button option.

How should i do it?

I tried to insert this on the LINk "chatButton.onClick()" but didn't work.

https://www.dropbox.com/s/xxxvvns7qduum7t/Captura%20de%20ecr%C3%A3%202024-12-18%2C%20%C3%A0s%2017.18.06.png?dl=0

Comments

Sign In or Register to comment.