# Open link in a new popup via javascript

**URL:** <https://forum.bubble.io/t/open-link-in-a-new-popup-via-javascript/237446>\
**Category:** Need help\
**Created:** [December 17, 2022, 3:55am UTC](https://forum.bubble.io/t/open-link-in-a-new-popup-via-javascript/237446 "2022-12-17T03:55:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![nazostro](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nazostro](https://forum.bubble.io/u/nazostro)\
**Post date:** [December 17, 2022, 3:55am UTC](https://forum.bubble.io/t/open-link-in-a-new-popup-via-javascript/237446/1 "2022-12-17T03:55:33Z")

</div>

Hello!

Is there a way to open a link in a popup instead of a new tab/window via Javascript? I am using the following javascript:

window.open(‘[https://www.google.ca/’,'blank](https://www.google.ca/','blank)’)

But instead of a new tab, I want it to open in a popup 🙂

---

<div class="post-metadata">

**Author:** ![dorilama](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/dorilama/32/226878_2.png) [@dorilama](https://forum.bubble.io/u/dorilama)\
**Post date:** [December 17, 2022, 8:33am UTC](https://forum.bubble.io/t/open-link-in-a-new-popup-via-javascript/237446/2 "2022-12-17T08:33:48Z")

</div>

The browser only have windows and tabs.  
If you want a popup you can create one with bubble (there is an element just for this) and then load the page in the popup (you can use an html element with an iframe and set the src dinamically)

---

<div class="post-metadata">

**Author:** ![nazostro](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nazostro](https://forum.bubble.io/u/nazostro)\
**Post date:** [December 17, 2022, 4:16pm UTC](https://forum.bubble.io/t/open-link-in-a-new-popup-via-javascript/237446/3 "2022-12-17T16:16:05Z")

</div>

Amazing!! Thank you for this idea! 🙂

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [February 25, 2023, 3:55am UTC](https://forum.bubble.io/t/open-link-in-a-new-popup-via-javascript/237446/4 "2023-02-25T03:55:51Z")

</div>

This topic was automatically closed after 70 days. New replies are no longer allowed.
