Cached-
URL löschen nach dem Navigieren (etwas "dirty"...)
Delphi-Quellcode:
procedure NavigateNoHistory(WebBrowser: TEmbeddedWB;
const URL:
string);
function StrToChr(Str:
string; Pos: Integer): Char;
begin
Result := Str[Pos];
end;
var
Flags: OleVariant;
HistoryStg: IUrlHistoryStg;
begin
Flags := navNoHistory;
WebBrowser.Navigate(WideString(
URL), Flags);
Wait(WebBrowser);
HistoryStg := CreateComObject(CLSID_CUrlHistory)
as IUrlHistoryStg;
HistoryStg.DeleteUrl(PWideChar(StrToChr(
URL, 0)), 0);
end;