Results 1 to 2 of 2

Thread: how can i tell if a window is already open

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Oct 2001
    Location
    didn't decide yet
    Posts
    566

    how can i tell if a window is already open

    i use the following code in all my pages to open a new IE window
    Code:
    m_PL = window.open('../flash/player.html','m_PL','directories=0,height=85,width=293,left=0,menubar=0,resizable=0,scrollbars=0,titlebar=0,toolbar=0,top=0')
    how can i tell if that window is already open so the other pages won't reload the same page
    Come and get our ISDN CallerID http://www.3wm.biz

  2. #2
    Frenzied Member msimmons's Avatar
    Join Date
    Jul 2001
    Location
    Houston, TX
    Posts
    1,057
    Code:
    if (m_PL){
         //the window is open
    }else{
         //the window is not open
    }
    one thing to remember when using this method is that you have to set m_PL = 0 in the onUnload of the window so that the code doesn't think the window is there when it is not.

    Hope that helped,
    Michael
    I'm off to GalahTech, hope to see you there.

    If you don't like the rules they make, refuse to play their game. -- Steve Ignorant.

Posting Permissions

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



Click Here to Expand Forum to Full Width