Results 1 to 3 of 3

Thread: Need help with javascript popup window staying on top of other windows

  1. #1
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Need help with javascript popup window staying on top of other windows

    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:

    Code:
       <script language="javascript" type="text/javascript">
    function test() 
    {
    setTimeout("self.focus()",3000)
    }
    
    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");
    new_window.focus();
    // open new document 
    new_window.document.open();
    
    // 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 />");
    new_window.document.write("</body></html>");
    
    // close the document
    new_window.document.close(); 
    }
    
    // This is the function that will close the
    // new window when the mouse is moved off the link
    function close_window() 
    {
    new_window.close();
    }
    
    </script>

  2. #2
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Anyone with any ideas.

  3. #3
    Join Date
    Apr 2010
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I am on a Javascript forum and not one person can assist on this. Any ideas from anyone please.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •