# Popup Window Display

**URL:** <https://forum.inductiveautomation.com/t/popup-window-display/7310>\
**Category:** Ignition\
**Created:** [September 24, 2013, 6:24pm UTC](https://forum.inductiveautomation.com/t/popup-window-display/7310 "2013-09-24T18:24:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![cacordova](https://avatars.discourse-cdn.com/v4/letter/c/bbce88/32.png) [@cacordova](https://forum.inductiveautomation.com/u/cacordova)\
**Post date:** [September 24, 2013, 6:24pm UTC](https://forum.inductiveautomation.com/t/popup-window-display/7310/1 "2013-09-24T18:24:08Z")

</div>

How can I make the popup to be on top of the window? Cause what happens right now is when I click on the object it opens the popup and closes the main window. What I want is when I click on the object it will just open that popup window and the main window will stay on the back

Thanks

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [September 24, 2013, 7:25pm UTC](https://forum.inductiveautomation.com/t/popup-window-display/7310/2 "2013-09-24T19:25:16Z")

</div>

Every window has a Layer property with a default value of 0. Any windows that have the same layer value will hide behind each other when you change which one has focus. If you want a popup that’s always on top, just set the layer property of the window (not the root container) to 1 or higher.

---

<div class="post-metadata">

**Author:** ![cacordova](https://avatars.discourse-cdn.com/v4/letter/c/bbce88/32.png) [@cacordova](https://forum.inductiveautomation.com/u/cacordova)\
**Post date:** [September 24, 2013, 8:00pm UTC](https://forum.inductiveautomation.com/t/popup-window-display/7310/3 "2013-09-24T20:00:00Z")

</div>

I’ve set the Layer to 1 but it’s still doing that, i tried 2 and it’s still closing the other window

---

<div class="post-metadata">

**Author:** ![Robert.McKenzie](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/robert.mckenzie/32/4134_2.png) [@Robert.McKenzie](https://forum.inductiveautomation.com/u/Robert.McKenzie)\
**Post date:** [September 24, 2013, 8:45pm UTC](https://forum.inductiveautomation.com/t/popup-window-display/7310/4 "2013-09-24T20:45:39Z")

</div>

Well if it is actually closing the other window, then something in your script is doing that. You could be using the swap function when you meant to say open.

---

<div class="post-metadata">

**Author:** ![cacordova](https://avatars.discourse-cdn.com/v4/letter/c/bbce88/32.png) [@cacordova](https://forum.inductiveautomation.com/u/cacordova)\
**Post date:** [September 24, 2013, 9:22pm UTC](https://forum.inductiveautomation.com/t/popup-window-display/7310/5 "2013-09-24T21:22:26Z")

</div>

Ok, got it. Thanks!
