Title: Open a popup programmatically with javascript
Last modified: November 26, 2020

---

# Open a popup programmatically with javascript

 *  Resolved [razzner](https://wordpress.org/support/users/razzner/)
 * (@razzner)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/open-a-popup-programmatically-with-javascript/)
 * Hi
    How i can trigger showing selected popup by js?

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

 *  [Sygnoos Support](https://wordpress.org/support/users/sygnoossupport/)
 * (@sygnoossupport)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/open-a-popup-programmatically-with-javascript/#post-13729809)
 * Dear [@razzner](https://wordpress.org/support/users/razzner/) ,
 * Thanks for the message!
    Please, use the following code in the first field of
   the Custom JS and CSS:
 *     ```
       var popupObj = SGPBPopup.createPopupObjById(123);
       popupObj.prepareOpen();
       ```
   
 *  where the 123 is you popup id
 * [https://prnt.sc/vthg1z](https://prnt.sc/vthg1z)
 * Please, let us know if this helped.
 *  [Sygnoos Support](https://wordpress.org/support/users/sygnoossupport/)
 * (@sygnoossupport)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/open-a-popup-programmatically-with-javascript/#post-13734360)
 * Dear [@razzner](https://wordpress.org/support/users/razzner/) ,
 * How are you today?
    Just wondering whether you saw our previous message? Have
   you tried the given solution? Did it work for you? Please, share the results 
   with us.
 *  [Sygnoos Support](https://wordpress.org/support/users/sygnoossupport/)
 * (@sygnoossupport)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/open-a-popup-programmatically-with-javascript/#post-13740323)
 * Dear [@razzner](https://wordpress.org/support/users/razzner/) ,
 * We haven’t heard back from you for 3 days.
    We’re marking this thread as resolved.
   Please, submit a new support thread if you need more help.

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

The topic ‘Open a popup programmatically with javascript’ is closed to new replies.

 * ![](https://ps.w.org/popup-builder/assets/icon-128x128.gif?rev=2698840)
 * [Popup Builder - Create highly converting, mobile friendly marketing popups.](https://wordpress.org/plugins/popup-builder/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-builder/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-builder/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-builder/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-builder/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-builder/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Sygnoos Support](https://wordpress.org/support/users/sygnoossupport/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/open-a-popup-programmatically-with-javascript/#post-13740323)
 * Status: resolved