Contents
- Index
- Previous
- Next
LoadURL method
Declaration
function LoadURL(const URL: WideString): Boolean;
Description
Loads a document into the control from an arbitrary web URL.
LoadURL is intended to load a file from a server (using Internet protocols such as HTTP, HTTPS, FTP, and so on). The method does not load any local files directly from disk, nor it loads any URLs prefixed with the file:// protocol specifier.
The method is synchronous. While a document is loading, the Busy property is set to True. When the document has finished loading, the OnLoadURL event is fired and the Busy property is set to False. You should wait until the document is done loading before attempting to manipulate the document or get its current properties.
Returns True on success. Returns False on failure.