# How to make up :popup as the top-most window?

**URL:** <https://www.ruby-forum.com/t/how-to-make-up-popup-as-the-top-most-window/159703>\
**Category:** Rails\
**Created:** [February 7, 2009, 11:07am UTC](https://www.ruby-forum.com/t/how-to-make-up-popup-as-the-top-most-window/159703 "2009-02-07T11:07:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![horace](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/h/7ea924/32.png) [@horace](https://www.ruby-forum.com/u/horace)\
**Post date:** [February 7, 2009, 11:07am UTC](https://www.ruby-forum.com/t/how-to-make-up-popup-as-the-top-most-window/159703/1 "2009-02-07T11:07:05Z")

</div>

In the main windows, 10 project names are shown. Each project name is a  
link to a popup to show the project detail. Code:

\<%= link\_to h(project.code), project, :popup =\>  
[‘detail\_window’,‘height=560,width=900,resizable=yes’] %\>

This works fine if the user closes the detail window after viewing it.

There is a problem if the user clicks another project _without_ closing  
the detail window first. Since the project window is bigger than the  
detail windows, the detail window is refresh but it is not the top-most  
window.

It seems to the user nothing refresh when clicking different project  
(the reality is the popup window is refreshed behind the project  
window).

So, how can I set the popup detail windows to be top-most (even it’s  
opened before)?

Thanks  
horace

p.s. Browser is IE 6
