# Opening a webpage in a new window from a button

**URL:** <https://discourse.nodered.org/t/opening-a-webpage-in-a-new-window-from-a-button/97671>\
**Category:** General\
**Created:** [17 June 2025 18:11 UTC](https://discourse.nodered.org/t/opening-a-webpage-in-a-new-window-from-a-button/97671 "2025-06-17T18:11:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bobs409](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bobs409](https://discourse.nodered.org/u/bobs409)\
**Post date:** [17 June 2025 18:11 UTC](https://discourse.nodered.org/t/opening-a-webpage-in-a-new-window-from-a-button/97671/1 "2025-06-17T18:11:39Z")

</div>

I am trying to open a webpage in a new window by using a button in node red. I tried using this example: [Opening external links using dashboard buttons (flow) - Node-RED](https://flows.nodered.org/flow/f0a1a4d30712a5e8b37a9287a8cdb3d4)

It's does open the links but it's not opening in a "new window". Is there something I can add to the code to make it open a new window?

Thanks,

Bob

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [17 June 2025 18:24 UTC](https://discourse.nodered.org/t/opening-a-webpage-in-a-new-window-from-a-button/97671/2 "2025-06-17T18:24:36Z")

</div>

Have you tried adding a target to the widow.open method [Window: open() method - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Window/open)

---

<div class="post-metadata">

**Author:** ![bobs409](https://avatars.discourse-cdn.com/v4/letter/b/ee59a6/32.png) [@bobs409](https://discourse.nodered.org/u/bobs409)\
**Post date:** [25 June 2025 10:24 UTC](https://discourse.nodered.org/t/opening-a-webpage-in-a-new-window-from-a-button/97671/3 "2025-06-25T10:24:31Z")

</div>

Thanks for the reply. I'll do some research on that and give it a try.

Bob
