Title: Open via Javascript
Last modified: May 12, 2019

---

# Open via Javascript

 *  Resolved [jaltenbernd](https://wordpress.org/support/users/jaltenbernd/)
 * (@jaltenbernd)
 * [7 years ago](https://wordpress.org/support/topic/open-via-javascript/)
 * Is there way to open the modal from JavaScript? For example, I tried using window.
   location and window.location.href to the URL your plugin creates and nothing 
   happens.
 * I even created an anchor tag like [Test](https://wordpress.org/support/topic/open-via-javascript/?output_format=md#elementor...)
 * And then triggered it: $(“#test”).trigger(“click”) and $(“#test).click() and 
   those didn’t work either.
 * What am I missing?

Viewing 1 replies (of 1 total)

 *  Plugin Author [sukiwp](https://wordpress.org/support/users/sukiwp/)
 * (@sukiwp)
 * [7 years ago](https://wordpress.org/support/topic/open-via-javascript/#post-11523683)
 * Hi,
 * We never tested it using manual trigger via JS. But you have to make sure to 
   call that trigger after all Elementor scripts are initiated. Perhaps using the
   window load event.
 * Additionally, you should define the proper display conditions, otherwise, the
   popup won’t appear.
 * Regards

Viewing 1 replies (of 1 total)

The topic ‘Open via Javascript’ is closed to new replies.

 * ![](https://ps.w.org/popup-trigger-url-for-elementor-pro/assets/icon-256x256.
   png?rev=2020558)
 * [Popup Trigger URL for Elementor Pro](https://wordpress.org/plugins/popup-trigger-url-for-elementor-pro/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/popup-trigger-url-for-elementor-pro/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/popup-trigger-url-for-elementor-pro/)
 * [Active Topics](https://wordpress.org/support/plugin/popup-trigger-url-for-elementor-pro/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/popup-trigger-url-for-elementor-pro/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/popup-trigger-url-for-elementor-pro/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [sukiwp](https://wordpress.org/support/users/sukiwp/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/open-via-javascript/#post-11523683)
 * Status: resolved