|
-
Sep 18th, 2002, 09:29 AM
#1
Thread Starter
Fanatic Member
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
-
Sep 18th, 2002, 04:34 PM
#2
Frenzied Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|