Url Property  
 

Gets or sets the current browser address.

Syntax

object.Url [= value ]

Remarks

The Url property returns the current Uniform Resource Locator string which is used by the control to access a resource on the server. URLs have a specific format which provides information about the server, port and resource:

[http|https]://hostname [:port] / resource [? parameters]

The first part of the URL is the protocol and will typically be http, or https if a secure connection is being used. Following the protocol, there is the name of the server to connect to, optionally followed by a port number. If no port number is given, then the default port for the protocol will be used. This is followed by the resource, which is usually a path to a file or script on the server. Parameters to the resource may also be specified, which are typically used as arguments to a program that is executed on the server.

Here are some common examples of URLs used to access resources on an HTTP server:

http://www.example.com/products/index.html
In this example, the server is www.example.com and the resource is /products/index.html. The default port of 80 will be used to access the resource.

http://www.example.com:8080/index.html
In this example, the server is www.example.com and the resource is /products/index.html. However, the client should connect to an alternative port number, in this case 8080.

https://www.example.com/order/confirm.php
In this example, the server is www.example.com and the resource is the script /order/confirm.php. Because the protocol is https, a secure connection on port 443 will be established.

If this property is assigned a value other than an empty string, the control will navigate to that address. You can also assign a local file:// URL to this property and the control will display the contents of the file. If the user clicks on a link in the browser, this property will be updated to reflect the URL of the page that is currently being displayed. Note that this property value can change during navigation due to redirection.

Data Type

String

See Also

LocalFile Property, Redirected Property, Secure Property, SecurityLevel Property, Navigate Method, NavigationCompleted Event, NavigationStarting Event