Web Browser

Note: This topic documents use of the WEB-BROWSER2 control. Where possible, the WEB-BROWSER2 control is implemented the same as the now deprecated WEB-BROWSER control. To compare, see the documentation for Web Browser - deprecated.

The WEB-BROWSER2 control provides the functionality for displaying Web pages containing HTML, scripting, and Java applet content.

For more information about the usage of the Web browser control, refer to Appendix B of A Programmer's Guide to the Internet.

The Web browser control is used just like any other ACUCOBOL-GT control. To create a Web browser control identified by the name BROWSER-1 and using the Working-Storage item URL-1 as its value, for example, you would add the following lines to a screen section item:

03  BROWSER-1 WEB-BROWSER2 VALUE URL-1 
    COLUMN 5, LINE 5, SIZE 60, LINES 20.

or add the following procedure division code:

DISPLAY WEB-BROWSER2 VALUE URL-1
   COLUMN 5, LINE 5, SIZE 60, LINES 20
   HANDLE IN BROWSER-1.