FMX.WebBrowser.TCustomWebBrowser.URL
Delphi
property URL: string read GetURL write SetURL;
C++
__property System::UnicodeString URL = {read=GetURL, write=SetURL};
Contents
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
property | public | FMX.WebBrowser.pas FMX.WebBrowser.hpp |
FMX.WebBrowser | TCustomWebBrowser |
Description
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';