View Full Version : Need help with javascript popup window staying on top of other windows

04-27-2010, 06:53 PM
I currently have a popup window that works fine but while that window is up on top and I click on another link that opens another window the popup goes behind that window. How do I code to get the popup window to always stay on top no matter what window I open up. Here is my code right now:

<script language="javascript" type="text/javascript">
function test()

function open_new_window()
//new_window = open("","hoverwindow","width=300,height=200,left=10,top=10");
new_window = window.showModelessDialog("","hoverwindow","width=300,height=200,left=10,top=10");
// open new document

// Text of the new document
// Replace your " with ' or \" or your document.write statements will fail
new_window.document.write("<html><title>JavaScript New Window</title>");
new_window.document.write("<body onBlur = "test();" bgcolor=\"#FFFFFF\">");
new_window.document.write ("Week 1 Question".bold());
new_window.document.write("<table><tr><td>Is there a role of process owner in your organization? If not, how will you overcome this challenge? Why do you need process owners as a Lean Six Sigma Green Belt Project Leader?</td></tr></table>");
new_window.document.write("<br />");

// close the document

// This is the function that will close the
// new window when the mouse is moved off the link
function close_window()


04-28-2010, 12:56 PM
Anyone with any ideas.

04-29-2010, 01:45 PM
I am on a Javascript forum and not one person can assist on this. Any ideas from anyone please.