dana是对的。
uses mshtml
var
Document : IHtmlDocument2;
Link : IHTMLElement;
StrLinks : string;
i : integer;
begin
Document := WebBrowser1.Document as IHTMlDocument2;
for i := 0 to Document.Links.Length - 1 do
begin
Link := Document.Links.Item(i, 0) as IHTMLElement;
StrLinks := Link.ToString + #13#10;
ShowMessage(StrLinks);
end;
end;