Welcome, Guest
  • Author Topic: pop up allways on top  (Read 2258 times)

    denis

    • Server what's that
    • *
    • Posts: 1
      • View Profile
      • Email
    pop up allways on top
    « on: 08/11/02, 13:41 »
    Hello!
    On the first  place,I would like to thank you for your help, and off course, I need more solutions for pop up windows.  ;)

    FIRST: If I have more  than one pop up window, how can make them come above the main window as I click on  links for each pop up (even better would be if all the pop ups would appear in the same window)


    SECOND: I don't want a title bar in a pop up. JS for html pages doesn't work (offcourse).

    best regads from Croatia

    test pages: http://www.4boje.com/lens/lens.html

    Flash-db

    • Administrator
    • Systems Administrator
    • *****
    • Posts: 1876
      • View Profile
      • Flash-db.com
    Re:pop up allways on top
    « Reply #1 on: 08/16/02, 14:37 »
    To have the popups appear on top:

    Make sure you have the .focus part in the JS code.  Something like:

    on (release) {
    getURL ("javascript:NewWindow=window.open('yourPage.html','newWin','width=400,height=300,left=0,top=0,toolbar=0,location=0,scrollbars=0,status=0,resizable=0,fullscreen=0');  NewWindow.focus();  void(0);");
    }

    The NewWindow.focus part - tells the window, which you gave an instance name earlier in the code (NewWindow=window.open part)  To have focus - meaning to appear on top of all other windows.  If that was NewWindow.blur(); instead, the window would be opened behind the other windows.

    To Not have (or to have a title bar) - make sure that toolbar=0 in the code above.  To include it you would have toolbar=1.  ie Yes = 1, No = 0.  You can also just specify Yes or No - but on some browsers (mac) it's better to use 1's and 0's then specify yes or no.

    Flash-DB