FMX.WebBrowser.TWebBrowser.URL
Delphi
property URL: string read GetURL write SetURL default 0;
C++
__property URL = {default=0};
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | published | FMX.WebBrowser.pas FMX.WebBrowser.hpp |
FMX.WebBrowser | TWebBrowser |
Description
Specifies the loaded address or local file.
FMX.WebBrowser.TWebBrowser.URL inherits from FMX.WebBrowser.TCustomWebBrowser.URL. All content below this line refers to FMX.WebBrowser.TCustomWebBrowser.URL.
Specifies the loaded address or local file.
Set the URL property at design time using the Object Inspector or programatically to navigate to a specific network address or local file.
To load and display local files, explicitly deploy the file to be displayed by adding it to the Deployment Manager, then assign the 'file://<local file's name>'
string value to URL.
Setting this property automatically calls the Navigate method and adds the URL value to the end of the browsing history list.
Example
- Loading a local file:
WebBrowser1.URL := 'file://MyFile.txt';
- Loading a network address:
WebBrowser1.URL := 'http://www.embarcadero.com';