In the event that you are using Nosto's Onsite Popups, you can leverage the JS API to build complex interactions with the popups.
See the following articles on how to use the JS API to interact with popups:
Listing Popup Campaigns
Opening a Popup
Enabling & Disabling Popups