WinList
"WinList" is the array of all defined windows in a MapClient applications. You can iterate over it with:
for (var i=0;i<WinList.length;i++) { var w = WinList[i] ... ... }
WinList[0] is always the active window, i.e. the one last clicked (with the green border).