list of the currently open Internet Explorer windows

This is what I want to do...

Populate a listbox with a list of the currently open Internet Explorer windows.
When you choose one from the list, the value of the address bar of the window you selected from the list in submitted as form data to another php page.

...but I aint sure how to do it?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Can't be done (without a browser plugin), for security reasons in javascript.  A given window at a URL can't access the other window locations or content, because that would allow malicious sites to get your banking info, for example.
davepuseyAuthor Commented:
>> for security reasons in javascript

I wanna do it in PHP not javascript!
it'd be impossible with php (server side language) for sure and as shmert said, you can't do it in jscript
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Because PHP is all happening server-side, and doesn't know anything about the browser (just what the browser sends in the HTTP request, which doesn't include a list of open windows).

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
davepuseyAuthor Commented:
Is there any language (server or client side) that will do it?
not to my knowledge, shmert's suggestion of a browser plugin seems to be the only way

You can do something like this in JS if you've opened the windows using JS and named them, by testing for each valiable created by The best way to do this would be to assign each new instance to an array:

//  creating new windows...

var theWindows = new Array();

theWindows[0] =;
theWindows[1] =;
theWindows[2] =;

//  etc.

//  testing to see which windows are open...

for(var i = 0; i < theWindows.length; i++)
  if(theWindows[i] && !theWindows[i].closed)
    output += "<option value=\"" + theWindows[i].name + "\">" + theWindows[i].location.href + "</option>\n";

//  or whatever...

Not sure if this will actually work or not, but you can give it a go.

As for windows you yourself didn't open via script -- no way, José, you're SOL. And I sure as heck would NOT install a plugin that circumvented this.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.