Finding out all other top level windows

J

joao

Hi,

I'm looking for a way to iterate over all existing top level windows,
from inside javascript.

I know that if I have a window's name, I can access it, retrieve a
handle to it with window.open, etc. What I want here is, when there are
one or more windows open, and I *don't* know their names, how can I find
them ?

Does the navigator have some array of windows (like the window has an
array of frames) ?

Thx,
Joao
 
J

Jim Ley

I know that if I have a window's name, I can access it, retrieve a
handle to it with window.open, etc. What I want here is, when there are
one or more windows open, and I *don't* know their names, how can I find
them ?

This is impossible I'm afraid, there is no such way of doing it.
(even the brute force attempt would fail since some windows aren't
named - but it would've failed with the thousands of windows being
opened in any case)

Jim.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top