Groups | Blog | Home
all groups > dotnet jscript > july 2003 >

dotnet jscript : looping through all IE windows



Zeng
7/29/2003 1:50:11 PM
Hi,

This is related to one of my earlier posts. Is there a way to loop through
all windows of the client machine in Javascript? More specifically, I'm
interested in all IE windows are currently open.

Thanks!


Joe Fawcett
7/30/2003 7:51:34 AM
[quoted text, click to view]
You'll need a recent version of OS for this:
var oShell = new ActiveXObject("Shell.Application");
var colWindows = oShell.Windows();

You can now loop through the collection. Google Groups for Shell.Application
will show some examples.
--

Joe

Zeng
7/31/2003 2:18:20 PM
which OS'es are considered as recent for this, thanks!


[quoted text, click to view]

Joe Fawcett
8/1/2003 1:07:02 PM

[quoted text, click to view]
Shell32.dll 4.71 or later, normally on Windows 2000/XP and any OS that had
IE 4 installed with Active Desktop available even if not enabled.

--

Joe

AddThis Social Bookmark Button