Check is window already open
When you go to a certain page on my website, it opens a popup window. If they minimize that window and go to another page then come back, I want it to check if the window is open or not. If it is open, it moves it to the top so it is viewable. If it is not open, it opens it. How can I do this?
The trouble with doing something right the first time is that nobody appreciates how difficult it was.
Busy posted this at 21:39 — 17th January 2002.
He has: 6,151 posts
Joined: May 2001
Sorry I dont know the answer but just wanted to mention now with so many pop up killers out there and browser options, like Opera6 being able to turn pop ups off by default, I wouldnt use pop ups for anything important if I was you.
Suzanne posted this at 00:08 — 18th January 2002.
She has: 5,507 posts
Joined: Feb 2000
Essentially, you name the window. Any window you create, you can control.
irt.org has lots of good javascript tutorials and sample code (look under javascript articles) that will help you program whatever you want with a popup window.
Suzanne
Rageforth posted this at 00:23 — 18th January 2002.
They have: 56 posts
Joined: Feb 2000
I'm not worried about the popup killers. The people this is for don't have them...they aren't allowed to. It's a big company so if one person has it, all have to have it.
I did give the window a name. The problem was when I left the page that opened it, it wouldn't work. If I stayed on that page it worked fine.
The trouble with doing something right the first time is that nobody appreciates how difficult it was.
Suzanne posted this at 01:38 — 18th January 2002.
She has: 5,507 posts
Joined: Feb 2000
Do you have a forinstance?
http://www.irt.org/articles/js205/index.htm
I was serious about the irt.org recommendation.
S
Rageforth posted this at 14:21 — 18th January 2002.
They have: 56 posts
Joined: Feb 2000
Well I read through irt.org and didn't see this before when I was there. Thanks for the link. That is going to work perfectly!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.