GetDocumentHTML
Description:
Format:
GetDocumentHTML (integer Session ID (optional))
|
Parameters: |
Integer |
Session ID (optional) |
Browser Occurrence Number. |
|
Return Value: |
String |
HTML |
HTML of the current Document. |
Usage:
Example 1:
Get the HTML of the Document displayed in the default Browser occurrence.
string strHTML
strHTML = GetDocumentHTML ()
Example 2:
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)