影
影 子
Unregistered / Unconfirmed
GUEST, unregistred user!
//wbbrowser1还没有load入网页,当然会出错了,分开在不同的事件中做。
procedure TForm1.Button1Click(Sender: TObject);
begin
webbrowser1.Navigate('d:/200/a.htm');
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
Memo1.Lines.Add(IHtmlDocument2(WebBrowser1.Document).Body.OuterText);
end;
procedure TForm1.Button1Click(Sender: TObject);
begin
webbrowser1.Navigate('d:/200/a.htm');
end;
procedure TForm1.Button2Click(Sender: TObject);
begin
Memo1.Lines.Add(IHtmlDocument2(WebBrowser1.Document).Body.OuterText);
end;