# Closing browser window from button in perspective?

**URL:** <https://forum.inductiveautomation.com/t/closing-browser-window-from-button-in-perspective/56235>\
**Category:** Ignition\
**Tags:** ignition81\
**Created:** [February 16, 2022, 11:30pm UTC](https://forum.inductiveautomation.com/t/closing-browser-window-from-button-in-perspective/56235 "2022-02-16T23:30:28Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 23, 2022, 4:40pm UTC](https://forum.inductiveautomation.com/t/closing-browser-window-from-button-in-perspective/56235/6 "2022-02-23T16:40:31Z")

</div>

Browsers only allow you to close via Javascript a window/tab that was itself _opened_ via Javascript:

> **[Window.close() - Web APIs | MDN](https://developer.mozilla.org/en-US/docs/Web/API/Window/close)**
>
> The Window.close() method closes the current window, or
> the window on which it was called.

---

_[View the full topic](https://forum.inductiveautomation.com/t/closing-browser-window-from-button-in-perspective/56235)._
