Title: Javascript code in popup
Last modified: September 24, 2019

---

# Javascript code in popup

 *  Resolved [dawidowww](https://wordpress.org/support/users/dawidowww/)
 * (@dawidowww)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/javascript-code-in-popup/)
 * Hi,
 * I did a popup with javascript code from an advertising agency. When i dont display
   popup on my website i have views in the advertiser’s panel. The JS code must 
   run in the background of the page. How i can turn off popup and dont run js code
   which is in popup?
 * Thanks!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * (@danieliser)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/javascript-code-in-popup/#post-11979762)
 * [@dawidowww](https://wordpress.org/support/users/dawidowww/) – You would have
   to load that popups content on demand somehow. You could try our [Remote Content](https://wppopupmaker.com/extensions/remote-content/)
   extension’s AJAX method to load that content when it opens.
 * Otherwise you would need to code a solution that inserts the needed code into
   the popup only after its opened.
 * Hope that helps. If your issue is resolved please take a moment to [rate and review the plugin](https://wordpress.org/support/plugin/popup-maker/reviews/?rate=5#rate-response)
   or support.
 * If you still need help please message us directly at [https://wppopupmaker.com/support/](https://wppopupmaker.com/support/).

Viewing 1 replies (of 1 total)

The topic ‘Javascript code in popup’ is closed to new replies.

 * ![](https://ps.w.org/popup-maker/assets/icon-256x256.gif?rev=3097653)
 * [Popup Maker - Boost Sales, Conversions, Optins, Subscribers with the Ultimate WP Popup Builder](https://wordpress.org/plugins/popup-maker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-maker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-maker/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-maker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-maker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-maker/reviews/)

## Tags

 * [js code](https://wordpress.org/support/topic-tag/js-code/)
 * [Stats](https://wordpress.org/support/topic-tag/stats/)
 * [views](https://wordpress.org/support/topic-tag/views/)

 * 1 reply
 * 2 participants
 * Last reply from: [Daniel Iser](https://wordpress.org/support/users/danieliser/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/javascript-code-in-popup/#post-11979762)
 * Status: resolved