How to use "onClick JS event"?
The "onClick JS event" field is an advanced feature that allows website owners to add JavaScript code that can be triggered when an element is mouse-clicked.
Here's how to add JavaScript code to the "onClick JS event" field:
- Select an element by clicking on it;
- Choose "Advanced" category in right toolbar;
- Write desired JavaScript code in "onClick JS event" field;
- Publish website to apply added changes.