刚才直接修改阿狗的内容,没看清事件,实际应该在BeforeNavigate2中,即
procedure TForm1.WebBrowser1BeforeNavigate2(Sender: TObject;
const pDisp: IDispatch; var URL, Flags, TargetFrameName, PostData,
Headers: OleVariant; var Cancel: WordBool);
begin
Cancel:=true;
winexec(pchar('Explorer.exe '+url),0);//手工启动浏览器!
end;