new win()
w = new win(left,top,width,height,title,)
A window is created with at least five parameters: the left and top
position in absolute screen coordinates, its width and height in pixels,
and the text for its titlebar. Optionally, a sixth parameter can indicate
the name of an HTML file that is loaded initially in the window's displayframe.
By default, a window is a combination of one displayFrame and one serverFrame.
Both are just expanded iframes. The serverFrame can be used to send
requests to a WebServer, and the result of thos request will be put
automatically in the displayFrame. Most serverFrame methods are
duplicated as win methods; these are just shorthand for the methods of
the window's first serverFrame.
The DHTML content of the displayFrame can be addressed
by the win property "contentWindow". To address the first image in
the displayed window "w", use:
w.contentWindow.document.getElementsByTagName("img")[0]
ServerFrames can be added at will by the "addServerFrame()" method. These
serverFrames behave just like any other serverFrame, but can be submitted
as a group by the "win.submit()" method. These extra serverFrames,
addressable by their own names and via the serverFrames[] array, should
be handled as usual, with one sending and one receiving instance.
They can be scheduled and put their results wherever they want, even in other
windows.
The collections of all windows in the system is the global "WinList[]" array.
Its first element, WinList[0], is always the active, topmost window,
showing a green titlebar.