# \[Solved\] Is it possible to have a button close the webpage it is on? {TLTR: NO}

**URL:** https://discourse.nodered.org/t/solved-is-it-possible-to-have-a-button-close-the-webpage-it-is-on-tltr-no/29847
**Category:** Dashboard
**Created:** [10 July 2020 12:30 UTC](https://discourse.nodered.org/t/solved-is-it-possible-to-have-a-button-close-the-webpage-it-is-on-tltr-no/29847 "2020-07-10T12:30:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [10 July 2020 12:30 UTC](https://discourse.nodered.org/t/solved-is-it-possible-to-have-a-button-close-the-webpage-it-is-on-tltr-no/29847/1 "2020-07-10T12:30:02Z")

</div>

What I have are sime LINKs in the dashbaord that open another device's NR dashboard.

On the other device, I want a button that will close that window/tab. Is it possible?

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [10 July 2020 12:34 UTC](https://discourse.nodered.org/t/solved-is-it-possible-to-have-a-button-close-the-webpage-it-is-on-tltr-no/29847/2 "2020-07-10T12:34:35Z")

</div>

> [@zenofmud](#):
>
> On the other device, I want a button that will close that window/tab. Is it possible?

If they are just regular links, then no - windows can't close themselves.

The only exception are windows that were opened using the `Window.open()` api - [Window: close() method - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Window/close)

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [10 July 2020 12:41 UTC](https://discourse.nodered.org/t/solved-is-it-possible-to-have-a-button-close-the-webpage-it-is-on-tltr-no/29847/3 "2020-07-10T12:41:01Z")

</div>

thanks nick, that is what I thought with the research I did but I thought I'd ask - Hope springs eternal 😁

---

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [24 July 2020 12:41 UTC](https://discourse.nodered.org/t/solved-is-it-possible-to-have-a-button-close-the-webpage-it-is-on-tltr-no/29847/4 "2020-07-24T12:41:03Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
