Results 1 to 7 of 7
  1. #1

    Popup window, how to stay on top?

    I have a simple application that causes a pop-up window (javascript) to popup and display info in a small pop-up screen.

    I want this screen to stay on top, in focus, even if I have another window open (since it is a small pop-up window, it will not be in the way if it stays on top).

    Is there a way to do this with javascript or possibly with PHP?


  2. #2
    in the <body> tag of your pop-up window this code:


    <BODY onBlur="self.focus()">

  3. #3
    Join Date
    Sep 2002
    2,304 ("", "TestWindow", "alwaysRaised=yes")

    Works only in JavaScript 1.2

  4. #4
    Thanks. The "onBlur" works for me, though it's a little tough to get used to. I don't have JavaScript 1.2.

  5. #5
    Join Date
    Sep 2002
    You don't have IE 5 or 6, Netscape 6 or 7?
    How's my programming? Call 1-800-DEV-NULL

  6. #6
    I have IE 6. However, your example did not work, and thus, I assumed I am using JS 1.1

  7. #7
    On second thought, the "onBlur" does not work well for me. Its too clumsy, but thanks for the info anyway.

Posting Permissions

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