VCLX TTextBrowser Demo


You have selected this page as a link, and since the TTextBrowser.OnTextChange event has now fired, you should notice that the back button is activated. This meands that you can call the TTextBrowswer.Back method to return to the page that linked you here. This is done with this code:

procedure TTextBrowserForm.TextBrowserTextChanged(Sender: TObject);
begin
  BackBtn.Enabled := TextBrowser.CanGoBackward;
  ForwardBtn.Enabled := TextBrowser.CanGoForward;
  Caption := FormCaption + TextBrowser.DocumentTitle;
end;
Link to Page 3, and then hit the back button, and both the Forward and Back buttons should be enabled.

Back to main page (or better yet, hit the Home button)