list of the currently open Internet Explorer windows

Posted on 2003-12-12
Last Modified: 2006-11-17
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?
Question by:davepusey
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
  • +1
LVL 11

Expert Comment

ID: 9929313
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.

Author Comment

ID: 9929408
>> for security reasons in javascript

I wanna do it in PHP not javascript!
LVL 13

Expert Comment

ID: 9929455
it'd be impossible with php (server side language) for sure and as shmert said, you can't do it in jscript
MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

LVL 11

Accepted Solution

shmert earned 500 total points
ID: 9929767
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).

Author Comment

ID: 9929998
Is there any language (server or client side) that will do it?
LVL 13

Expert Comment

ID: 9930037
not to my knowledge, shmert's suggestion of a browser plugin seems to be the only way

LVL 11

Expert Comment

ID: 9932274
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.

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Unwanted output from my query 5 42
htaccess block all countries but the US 4 41
How do I remove "" from json_encode 5 22
Find RGB colors from a screen. 2 19
Popularity Can Be Measured Sometimes we deal with questions of popularity, and we need a way to collect opinions from our clients.  This article shows a simple teaching example of how we might elect a favorite color by letting our clients vote for …
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question