|
OnDownloadComplete event : This event fire in 3 cases, when navigation is finished, halted or fails.
Write an OnBeforeNavigate2 event handler to take an action when your browser stops the downloading operation.
For example, use the OnDownloadComplete event to stop an download indication
that is started in an OnDownloadBegin event handler.
|
Note:
|
Unlike the OnNavigateComplete2 event, OnDownloadComplete
fires even if the browser does not successfully navigate to an URL
|
procedure TForm1.EmbeddedWB1DownloadComplete(Sender: TObject);
begin
EmbeddedWB1.SetFocusToDoc;
Form1.Caption:=('Browser' + ' '+'Site Name: '+(EmbeddedWB1.LocationURL));
end;
|