This JavaScript code allows you to manually activate the popup on your website, for example by clicking a button or triggering a custom event.
Procedure
1. Access the popup editing screen.
2. In the Content section, locate the checkbox next to Show automatically.
3. Make sure the Show automatically checkbox is unchecked. (If it is checked, the popup activates automatically and the manual activation code is not needed).
4. After unchecking the box, scroll down and find the label:
Trigger the popup opening via Visual Builder events or use the following JavaScript code:
5. Copy the code found immediately below this label. The code will be in the format initMSPopup(POPUPID), where POPUPID is your popup's unique identification number.
6. Save the changes to the popup.
Once copied, you can use this JavaScript code (for example, associating it with an HTML element’s onClick event) to make the popup appear whenever you want.







