GetDocumentHTML

Description:
Get the HTML (hypertext markup language) of the currently displayed Document.

Format:
GetDocumentHTML (integer Session ID (optional))

Parameters:

Integer

Session ID (optional)

Browser Occurrence Number.
First Browser occurrence is 1
Default value is 1

Return Value:

String

HTML

HTML of the current Document.

Usage:
Use this function to get the HTML of the Document currently displayed in the specified Browser.

Example 1:
Get the HTML of the Document displayed in the default Browser occurrence.

string strHTML

strHTML = GetDocumentHTML ()

Example 2:
Change the Title (temporarily) of the Document displayed in the second occurrence of the Browser.

String strHTML
Integer intBeg
Integer intEnd

strHTML = GetDocumentHTML (2)
intBeg = Pos(strHTML, '<TITLE>') + 6
intEnd = Pos(strHTML, '</TITLE>')
strHTML = Left(strHTML, intBeg) + 'My Title' + Mid (strHTML, intEnd)

SetDocumentHTML (2, strHTML)

Hosted by www.Geocities.ws

1