program IExplor;
uses
Windows, OLEAuto;
procedure OpenInternetExplorer(sURL: string);
const
csOLEObjName = 'InternetExplorer.Application';
var
IE : Variant;
WinHandle : HWnd;
begin
if VarIsEmpty(IE) then
begin
IE := CreateOleObject(csOLEObjName);
IE.Visible := true;
IE.Navigate(sURL);
end
else
begin
WinHandle := FindWIndow('IEFrame', nil);
if(0 <> WinHandle) then
begin
IE.Navigate(sURL);
SetForegroundWindow(WinHandle);
end
else
begin
end;
end;
end;
begin
OpenInternetExplorer('http://lear4u.blogsky.com/');
end