GetPageSource Function

Class

BrowserChild.

Action

Returns the source for a page that appears inside and including the <HTML> tag of the browser page.

Whitespace is removed from the beginning and end of each line.

Availability

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

Syntax

lsGetPageSource = browserpage.GetPageSource ([bBodyOnly])
Variable Description
lsGetPageSource Returns the source of an Html page. LIST OF STRING.
bBodyOnly Optional: TRUE to return the source for a page that appears inside and including the <HTML> tag of the browser page. FALSE to return all source lines in the page. The default is TRUE. BOOLEAN.

Notes

GetPageSource() works with all DOM extensions. For Internet Explorer, the method returns the frame source, including the enclosing HTML tags. For Mozilla Firefox, the function returns only the frame source.

Example

ResPrintList ("Source of current browser page", BrowserPage.GetPageSource())