WA Get current URL

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 11.2


WA Get current URL({*; } object) String

ParameterTypeDescription
**If specified, object is an object name (string)
If omitted, object is a variable
objectForm objectObject name (if * is specified) or
Variable (if * is omitted)
Function resultStringURL currently loaded in the Web area

Description

The WA Get current URL command returns the URL address of the page displayed in the Web area designated by the * and object parameters.

If the current URL is not available, the command returns an empty string.

If the Web page is completely loaded, the value returned by the function is the same as that of the "URL" variable associated with the Web area. If the page is in the process of being loaded, the two values will be different: the function returns the completely loaded URL and the variable contains the URL in the process of being loaded.

Example

The page displayed is the URL "www.apple.com" and the "www.4d.com" page is in the process of being loaded:

   $url:=WA Get current URL(MyWArea) `returns "http://www.apple.com"
      `The associated URL variable contains "http://www.4d.com"

See Also

WA OPEN URL.


4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next