K
kuker5
Unregistered / Unconfirmed
GUEST, unregistred user!
procedure TForm1.Button1Click(Sender: TObject);
begin
WebBrowser1.Navigate(edit1.Text);
end;
procedure TForm1.ToolButton8Click(Sender: TObject);
begin
close;
end;
procedure TForm1.ToolButton1Click(Sender: TObject);
begin
try
WebBrowser1.GoBack;
except
showmessage('已经到了最早的历史记录');
exit;
end;
end;
procedure TForm1.ToolButton2Click(Sender: TObject);
begin
try
WebBrowser1.GoForward;
except
showmessage('已经到了最后的历史记录');
exit;
end;
end;
procedure TForm1.ToolButton4Click(Sender: TObject);
begin
webbrowser1.Stop;
end;
procedure TForm1.ToolButton5Click(Sender: TObject);
begin
webbrowser1.Refresh;
end;
procedure TForm1.ToolButton6Click(Sender: TObject);
begin
webbrowser1.GoHome;
end;
procedure TForm1.WebBrowser1DownloadBegin(Sender: TObject);
begin
statusbar1.Panels[0].Text:='正在连接地址'+edit1.Text;
end;
procedure TForm1.WebBrowser1DownloadComplete(Sender: TObject);
begin
statusbar1.Panels[0].Text:='完成'+webbrowser1.LocationURL;
end;
end.
begin
WebBrowser1.Navigate(edit1.Text);
end;
procedure TForm1.ToolButton8Click(Sender: TObject);
begin
close;
end;
procedure TForm1.ToolButton1Click(Sender: TObject);
begin
try
WebBrowser1.GoBack;
except
showmessage('已经到了最早的历史记录');
exit;
end;
end;
procedure TForm1.ToolButton2Click(Sender: TObject);
begin
try
WebBrowser1.GoForward;
except
showmessage('已经到了最后的历史记录');
exit;
end;
end;
procedure TForm1.ToolButton4Click(Sender: TObject);
begin
webbrowser1.Stop;
end;
procedure TForm1.ToolButton5Click(Sender: TObject);
begin
webbrowser1.Refresh;
end;
procedure TForm1.ToolButton6Click(Sender: TObject);
begin
webbrowser1.GoHome;
end;
procedure TForm1.WebBrowser1DownloadBegin(Sender: TObject);
begin
statusbar1.Panels[0].Text:='正在连接地址'+edit1.Text;
end;
procedure TForm1.WebBrowser1DownloadComplete(Sender: TObject);
begin
statusbar1.Panels[0].Text:='完成'+webbrowser1.LocationURL;
end;
end.