直接分析源文件里的<a>和</a>不是个好办法,其实可以这样:
var
doc:IHTMLDocument2;
all:IHTMLElementCollection;
len,i:integer;
item:OleVariant;
begin
doc:=webbrowser1.Document as IHTMLDocument2;
all:=doc.Get_links;
len:=all.length;
for i:=0 to len-1 do
begin
item:=all.item(i,varempty);
if item.href='特定URL' then
item.click;
end;
end;