# Close chrome window with button

**URL:** <https://discourse.nodered.org/t/close-chrome-window-with-button/86064>\
**Category:** General\
**Created:** [1 March 2024 16:32 UTC](https://discourse.nodered.org/t/close-chrome-window-with-button/86064 "2024-03-01T16:32:41Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucianv](https://avatars.discourse-cdn.com/v4/letter/l/cab0a1/32.png) [@lucianv](https://discourse.nodered.org/u/lucianv)\
**Post date:** [1 March 2024 16:32 UTC](https://discourse.nodered.org/t/close-chrome-window-with-button/86064/1 "2024-03-01T16:32:41Z")

</div>

Hi,  
i search a lot but I was not able to find a way to close the page (chrome) using a button from dashboard. Basically I want to have a button called exit which when cliked to close the page.  
Is that possible to achieve ?

Thanks a lot

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [1 March 2024 20:44 UTC](https://discourse.nodered.org/t/close-chrome-window-with-button/86064/2 "2024-03-01T20:44:02Z")

</div>

Modern browsers try to protect themselves from rogue scripts and so restrict closing via a script.

Some workarounds might work: [javascript - How to close current tab in a browser window? - Stack Overflow](https://stackoverflow.com/questions/2076299/how-to-close-current-tab-in-a-browser-window)

---

<div class="post-metadata">

**Author:** ![smanjunath211](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smanjunath211/32/95742_2.png) [@smanjunath211](https://discourse.nodered.org/u/smanjunath211)\
**Post date:** [2 March 2024 00:47 UTC](https://discourse.nodered.org/t/close-chrome-window-with-button/86064/3 "2024-03-02T00:47:55Z")

</div>

> [@\*\*how to close node-red browser window by a button in dashboard\*\*](https://discourse.nodered.org/t/how-to-close-node-red-browser-window-by-a-button-in-dashboard/83699):
>
> Hi, I show a node-red dashboard working on a thin client from a browser window on a control system. Stupidly I can not leave node-red window any more, there is no close button. Therfore I want to install a button in my dashboard to close the node-red window. (I don't want to stop node-red only want to close the window). I tried with an execute node and CTR + F4 but it does not work. Have you any idea how to solve this? Thanks for your help in advance Tim

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [31 May 2024 00:48 UTC](https://discourse.nodered.org/t/close-chrome-window-with-button/86064/4 "2024-05-31T00:48:07Z")

</div>

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