# How to close current wix page ?

**URL:** <https://forum.wixstudio.com/t/how-to-close-current-wix-page/37955>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [June 11, 2018, 1:06pm UTC](https://forum.wixstudio.com/t/how-to-close-current-wix-page/37955 "2018-06-11T13:06:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jsantana](https://avatars.discourse-cdn.com/v4/letter/j/f05b48/32.png) [@jsantana](https://forum.wixstudio.com/u/jsantana)\
**Post date:** [June 11, 2018, 1:06pm UTC](https://forum.wixstudio.com/t/how-to-close-current-wix-page/37955/1 "2018-06-11T13:06:32Z")

</div>

Hi,

How can i close the current wix-page ?

And

How can i open a new page or tab from wix-page ?

Thanks

---

<div class="post-metadata">

**Author:** ![doron-alkalay](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/doron-alkalay/32/2887_2.png) [@doron-alkalay](https://forum.wixstudio.com/u/doron-alkalay)\
**Post date:** [June 14, 2018, 9:44am UTC](https://forum.wixstudio.com/t/how-to-close-current-wix-page/37955/2 "2018-06-14T09:44:46Z")

</div>

Hi Jorge!

Opening in the same/new tab is determined by the browser. This means that it’s very difficult (or impossible) to create a full consistent user experience since different browsers behave differently, and users tend to configure according to personal preferences (where it’s possible to set).

Closing a tab/window is also impossible, your only option is using LightBox and the [close( )](https://www.wix.com/code/reference/wix-window.lightbox.html#close) method that comes along with it.

Note that these limitation doesn’t apply only in Wix but in browsers in general.  
A window can only close other sub-windows that were open by it, never itself.

 ![](https://us1.discourse-cdn.com/wix/original/3X/a/f/af05fa9b26ebffb18c2a1f692e8765269608ec9e.png)

Doron. 🙂

---

<div class="post-metadata">

**Author:** ![mims](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/mims/32/80662_2.png) [@mims](https://forum.wixstudio.com/u/mims)\
**Post date:** [August 13, 2021, 4:00pm UTC](https://forum.wixstudio.com/t/how-to-close-current-wix-page/37955/3 "2021-08-13T16:00:06Z")

</div>

Hi. We need to have a ‘leave this site’ button as shown in [https://safelives.org.uk/](https://safelives.org.uk/) … I think this is possible despite the comment above that it’s not. Can you please clarify?
