Demo 3 – JS API Samples
The Popups in this demo page contain a code module.
Review the contents of that code module, to get an idea on how to use the JS API to create custom triggers.
- Demo 1: Opens after 3 seconds
- Demo 2: Opens when scrolled down by 50px
- Demo 3: Customizes the Popup contents every time the Popup is opened
Visit our script generator for more samples (at the bottom) or to create your own custom Popup scripts.
Timed Popup
There is a Code Module in the right column →
Check its contents to see how this Popup is triggered after a 3-second delay.
(Code Module)
Scroll-Triggered Popup
There is a Code Module in the right column →
Check its contents to see how this Popup is triggered once you scroll down 50 pixels.
(Code Module)
Customize Popup Contents
There is a Code Module in the right column →
Check its contents to see how this Popup modifies the open counter value every time it’s triggered.
You opened this Popup # times.
(Code Module)