How to launch your widget
Let’s take the example from above. To launch the Chaty widget with a JavaScript function, add an image of your choice. This image will serve as your custom ”button” that visitors will click to close the Chaty widget. Click on the image you just uploaded, then click on “More options” and select “Edit as HTML” button to see the image HTML code. This is where you need to add the JavaScript function. Then, you need to add this(without the quotes):
“<a href=javascript:launch_chaty();>” right before the image tag (the image tag will already be there when you upload a picture).
You can also use this code with a number inside the brackets, e.g. (1), (2) if you have more than one widget in that page.