Openning a popup window from a table component

Good day

I dragged n dropped a table component that extract data from my Database into my visual designer and added a button in the last column of the table component,When the button is clicked it execute a javascript fuction(window.open()) to display the selected rows in detail,It openning the popup window n displaying the data but instead of the pop window to appear on the window that call it,it apear at the back of the window.

Pls what cai do to make it apear on the windiw that call it,

[513 byte] By [JohnnyFlipa] at [2007-11-27 6:03:28]
# 1
Hi,You have to set the focus for the popup window.Examplevar popupwindow=window.open("your url");if(window.focus) {popupwindow.focus();}return false;
bupathirajhaa at 2007-7-12 16:46:16 > top of Java-index,Development Tools,Java Tools...
# 2
If you have control over the page you are opening, you can also set the onBlur property of the body element for that page in the JSP.<ui:body binding="#{printersetup.body1}" id="body1" onBlur="window.focus();">This will keep your new window on top of all other windows.
dsva at 2007-7-12 16:46:16 > top of Java-index,Development Tools,Java Tools...