Title: Subscription Form problem
Last modified: August 21, 2016

---

# Subscription Form problem

 *  [yabalabaska](https://wordpress.org/support/users/yabalabaska/)
 * (@yabalabaska)
 * [12 years, 2 months ago](https://wordpress.org/support/topic/subscription-form-problem/)
 * Hi, I was trying to do a popup with the subscription form you give, but I want
   to do that when it submits the form it close the window and I try many things
   and I could not do it 🙁 .
 * Where should I put the fuction Javascript on the code for close when it submits.
 * Thanks
 * CODE:
 * <div class=”newsletter newsletter-subscription”>
    <form method=”post” action=”
   [http://blabla.com.es/wp-content/plugins/newsletter/do/subscribe.php&#8221](http://blabla.com.es/wp-content/plugins/newsletter/do/subscribe.php&#8221);
   onsubmit=”return newsletter_check(this)”>
 * I try: onsubmit=”return newsletter_check(this); window.close();”
 * Or
 * onsubmit= window.close();”
 * And still not working, thanks!
 * [https://wordpress.org/plugins/newsletter/](https://wordpress.org/plugins/newsletter/)

The topic ‘Subscription Form problem’ is closed to new replies.

 * ![](https://ps.w.org/newsletter/assets/icon-256x256.png?rev=1052028)
 * [Newsletter - Send awesome emails from WordPress](https://wordpress.org/plugins/newsletter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/newsletter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/newsletter/)
 * [Active Topics](https://wordpress.org/support/plugin/newsletter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/newsletter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/newsletter/reviews/)

## Tags

 * [close](https://wordpress.org/support/topic-tag/close/)
 * [on](https://wordpress.org/support/topic-tag/on/)
 * [submit](https://wordpress.org/support/topic-tag/submit/)

 * 0 replies
 * 1 participant
 * Last reply from: [yabalabaska](https://wordpress.org/support/users/yabalabaska/)
 * Last activity: [12 years, 2 months ago](https://wordpress.org/support/topic/subscription-form-problem/)
 * Status: not resolved