GetDocumentAddress

Description:
Get the Address (URL) of the currently displayed Document.

Format:
GetDocumentAddress (integer Session ID (optional))

Parameters:

Integer

Session ID (optional)

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

Return Value:

String

Address

Address (URL) of current Document

Usage:
Use this function to get the Address (URL) of the Document currently displayed in the specified Browser.

Example 1:
Get the Address of the Document displayed in the browser after a 'Submit' button has been clicked in the default Browser occurrence.

string strAddress

ClickButtonWithText ('Submit')
strAddress = GetDocumentAddress ()

Example 2:
Display a message if the second occurrence of the Browser has an address of 'blank.htm'.

If GetDocumentAddress (2) = 'blank.htm'
 MessageBox ('Page Error', 'The Document does not exist')
EndIf

Hosted by www.Geocities.ws

1