
The Object Scripting Model - The Window Object
The Window Object.
The Windows' properties.
All the properties apart from opener, status, defaultStatus and name are READ ONLY.
The name property (string)
The name property contains the name of the current window.
e.g.
This displays a message box with the name of the window diplayed in it.
The defaultStatus property (string)
Can be set to change the text that appears in the bottom left hand corner
of the status bar or can be used to get that text.
e.g.
This example sets then displays the contents of the defaultStatus property.
The status property (string)
Can be used to return or set the text in the bottom left hand corner of Internet
Explorer.
e.g.
This example defines a variable, x puts the text "Hiya!" into this varable, sets the
Status property to x and displays the Status in a message box.
The parent property (window object)
Returns the windows that is the parent of the current window.
e.g.
Diplays the name of the parent of the current window in a message box. The parent property
therefore has the same properties, methods and events as a window type object (mainly because
that is what it is). This applies to the self and top properties too.
The self property (window object)
Returns the current window.
Displays the name of the current window, this is the same as using
The top property (window object)
Returns the top most window, i.e. it returns the parent of all the windows.
This diplays the name of the top most window in the status bar of the current window.
The Document property (document object)
Returns the document object of the current window. The document object has events, properties
and methods of its own.
The Frames property (array of frame objects)
Returns the array of frames contained in the current window.
e.g.
If the current window defined two frames then Frames would have
two FRAME objects defined within it. Each FRAME object is accessable as
follows, the first frame is defined as Frames(0) and the second
frame as Frames(1).
The History property (history object)
Returns the History object of the current window.
The History object has properties, methods and events of its own.
The Navigator property (navigator object)
Returns the Navigator object of the current window.
The Navigator object has properties, methods and events of its own.
The Location property (location object)
Returns the Location object of the current window.
The Location object has properties, methods and events of its own.
The Opener property (variant type)
Returns the window that opened the current window.
Other Properties
There is also a property called "explorer".