Other Properties

Here is a table of the other properties with their corresponding ACUCOBOL-GT Web browser control properties and descriptions:

Property Control property Description
Busy BUSY Indicates whether a download or navigation is still in progress.
LocationName TITLE Name of the resource that the WEB-BROWSER control is currently displaying.
LocationURL VALUE URL of the resource that the WEB-BROWSER control is currently displaying.
Type TYPE Type of the current contained document object.

BUSY, LOCATION-NAME, and TYPE are read-only properties. Setting their values has no effect. As with all ACUCOBOL-GT control properties, you may use the INQUIRE verb to obtain a Web browser control's properties. For example, to check whether a Web browser control has completed executing the last invoked method:

INQUIRE BROWSER-1 BUSY IN BROWSER-1-BUSY.
IF BROWSER-1-BUSY = 1 
...
END-IF

To get the URL that the browser is currently displaying:

INQUIRE BROWSER-1 VALUE IN URL-1.

Alternatively, if you have defined the control with value URL-1 in a screen section item, the LocationURL is automatically moved to URL-1 when an event or exception occurs or the ACCEPT terminates.