Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Mar 2005
    Posts
    61
    Thanks
    0
    Thanked 0 Times in 0 Posts

    windows taking focus

    Hi,

    Is there any way to stop windows taking the focus from other windows. For example, when you have a page loading in one window while you are reading another window. When the first window is finished loading it pops out over the top of the second window. Very annoying. I think this may only be an IE problem?

    Any ideas?
    "It doesn't matter if I'm optomistic or not, nothing ever works out for me."

  • #2
    Regular Coder
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    375
    Thanks
    0
    Thanked 0 Times in 0 Posts
    First off, why is a page loading in one window while you are reading a page in another window? Do you want this as a solution for your personal browsing habits or for a site that you designed that exhibits this behavior? For both problems, there is a simple solution, don't open a second window until you have finished reading the page you are reading. If this is a design problem and you really must open another window while you or someone is reading in the first, you could try:

    <script type="text/javascript">
    onload=function(){self.blur()}
    </script>

    on the page in the window that you are not reading.
    - John


  •  

    Posting Permissions

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