# Close current window/tab

**URL:** <https://forum.inductiveautomation.com/t/close-current-window-tab/24434>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [April 27, 2019, 2:34am UTC](https://forum.inductiveautomation.com/t/close-current-window-tab/24434 "2019-04-27T02:34:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![silverbacknet](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/silverbacknet/32/7385_2.png) [@silverbacknet](https://forum.inductiveautomation.com/u/silverbacknet)\
**Post date:** [April 27, 2019, 2:34am UTC](https://forum.inductiveautomation.com/t/close-current-window-tab/24434/1 "2019-04-27T02:34:22Z")

</div>

We have open a new window, but there seems to be a lack of a corresponding close current window? You can manipulate popup views, but I’ve found it far more comfortable to open a new window to get to certain screens, whether it’s a printable screen, a specification review and sign-off, or whatever. This means there’s no back button to cause all kinds of possible confusion, and there are lots of times when the ability to flip between windows is super helpful. But then they hit the button to finish, and there’s nothing I can do to close the window, they just have to do it themselves. (I guess I could leave a huge modal popup telling them to close this window/tab…)

I also have a specific use-case regarding an XY Graph bug that requires a total view reset to initial state, and the one and only way to get that is by opening a new window to the same page. But of course, I’d then like to close the old one, so it’s not leaving a confusing identical screen behind behind.

---

<div class="post-metadata">

**Author:** ![nick.schuetz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nick.schuetz/32/6160_2.png) [@nick.schuetz](https://forum.inductiveautomation.com/u/nick.schuetz)\
**Post date:** [May 1, 2019, 7:44pm UTC](https://forum.inductiveautomation.com/t/close-current-window-tab/24434/2 "2019-05-01T19:44:53Z")

</div>

There is  
`system.nav.closeParentWindow(event)`  
with documentation [here](https://docs.inductiveautomation.com/display/DOC80/system.nav.closeParentWindow) which will close the window the button is contained within.

---

<div class="post-metadata">

**Author:** ![silverbacknet](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/silverbacknet/32/7385_2.png) [@silverbacknet](https://forum.inductiveautomation.com/u/silverbacknet)\
**Post date:** [May 1, 2019, 9:35pm UTC](https://forum.inductiveautomation.com/t/close-current-window-tab/24434/3 "2019-05-01T21:35:09Z")

</div>

Unfortunately, that’s a Vision client method only. I just realized I didn’t specify Perspective in the original post.

---

<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:** [May 1, 2019, 10:53pm UTC](https://forum.inductiveautomation.com/t/close-current-window-tab/24434/4 "2019-05-01T22:53:24Z")

</div>

There’s not really a “main window” to close in Perspective the way there is in Vision - there’s just a center “viewport” that you navigate around (using view navigation), or you can “switch” to a new page entirely via URL navigation (even if you’re on a particular mounted path, if you URL navigate _to that same path_ it will act as a reload [I’m pretty sure]).

The reason for this is Perspective is actually only a single “page” that loads up when you get the initial ‘loading’ splash with resource delivery. All navigation you do after that is “faked” - the content on the page(s) changes but the browser never _really_ navigates (unless you do a full page refresh, either yourself or with the refresh action) _or_ you perform URL navigation, which is telling the browser itself to change URLs.
