Title: Javascript on the popup
Last modified: August 21, 2016

---

# Javascript on the popup

 *  Resolved [jimmyrose](https://wordpress.org/support/users/jimmyrose/)
 * (@jimmyrose)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascript-on-the-popup/)
 * We need to be able to run some javescript on the popup to grab a query string
   parameter and append it to a link on the popup.
 * When I include <script> tags, with “or use Javascript to resize and center the
   popover” enabled, the popup just never appears.
 * Any way I can include some script on this?
 * [http://wordpress.org/extend/plugins/wordpress-popup/](http://wordpress.org/extend/plugins/wordpress-popup/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Thread Starter [jimmyrose](https://wordpress.org/support/users/jimmyrose/)
 * (@jimmyrose)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascript-on-the-popup/#post-3797957)
 * If I don’t enable javascript resize, it works. Unfortunately this means the popup
   isn’t centred no matter what browser size, which doesn’t look great 🙁
 *  [Ari Stathopoulos](https://wordpress.org/support/users/aristath/)
 * (@aristath)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascript-on-the-popup/#post-3797991)
 * Hello there [@jimmyrose](https://wordpress.org/support/users/jimmyrose/),
    Does
   this also occur if you add you script in the head of your theme template?
 * Could you please post a link to a page where this occurs so that I may take a
   look?
 * Cheers,
    Ari.
 *  Thread Starter [jimmyrose](https://wordpress.org/support/users/jimmyrose/)
 * (@jimmyrose)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascript-on-the-popup/#post-3798000)
 * Hey Ari
 * Thanks for getting back to me. It seems to have been caused by a WordPress hack.
   After clearing the dodgy code it seems to be working seamlessly.
 * Sorry to have wasted your time 🙁
 * Cheers
    James
 *  [Ari Stathopoulos](https://wordpress.org/support/users/aristath/)
 * (@aristath)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascript-on-the-popup/#post-3798001)
 * Well, that’s good news!
    Thank you for getting back to us, Could you please mark
   this post as resolved then?
 * Thanks! 🙂
 *  Thread Starter [jimmyrose](https://wordpress.org/support/users/jimmyrose/)
 * (@jimmyrose)
 * [13 years, 3 months ago](https://wordpress.org/support/topic/javascript-on-the-popup/#post-3798002)
 * No worries 🙂

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Javascript on the popup’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popup/assets/icon-256x256.gif?rev=3446944)
 * [Hustle - Email Marketing, Lead Generation, Optins, Popups](https://wordpress.org/plugins/wordpress-popup/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popup/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popup/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popup/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popup/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popup/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [jimmyrose](https://wordpress.org/support/users/jimmyrose/)
 * Last activity: [13 years, 3 months ago](https://wordpress.org/support/topic/javascript-on-the-popup/#post-3798002)
 * Status: resolved