BrowserChild Class

Description

BrowserChild class is the class for the window that contains the contents of the Web page. If the window is divided into frames, each frame window also has the class BrowserChild.

Tag

The default tag is the caption of the page, which is the text that appears in the title bar for the page. The window ID of a Web page, which is the top-level BrowserChild, is its URL; and the window ID of a browser frame, which is a lower-level BrowserChild, is its name, which is the value of the NAME attribute, if there is one.

Inheritance

BrowserChild is derived from the AnyWin class.

Availability

This functionality is supported only if you are using the Classic Agent.

Properties

In addition to the properties it inherits from the AnyWin class, BrowserChild has the following properties:

Property Type Description
$Caption STRING The caption for the page (that is, what is displayed in the title bar for the page)
$Location STRING The URL of the page that is currently loaded

Use the GetProperty method to access these properties, such as in the following example which uses the home page of the GMO Web application:

STRING sCaption, sLocation
sCaption = GMO.GetProperty ("$Caption")
sLocation = GMO.GetProperty ("$Location")
Print ("Caption: {sCaption}")
Print ("Location: {sLocation}")

// Result:
// Caption: Welcome to Green Mountain Outpost
// Location: http://www.borland.com/downloads[...]

For more information, see Properties.

Example

Each of the pages in the GMO Web application is of class BrowserChild.

Methods

In addition to the methods it inherits from the AnyWin class, BrowserChild has the following methods: