Web.GetURL

string Web.GetURL ( 

string ObjectName )

Example 1

current_url = Web.GetURL("Web1");

Gets the URL of the web page that is currently displayed in the web object named "Web1" and stores it in a variable named "current_url."

Example 2

urlOrderForm = Web.GetURL("Online Order Form");

Gets the URL of the page that is currently loaded in the "Online Order Form" web object and stores it in a variable called "urlOrderForm."

Tip: Starting a variable name with a prefix like "url" is a technique that programmers use to help themselves remember what kind of data a variable contains—in this case, the "url" in the variable name is a reminder that the variable contains a URL.

See also:  Related Actions