HTMLViewer.CanGoForward
From Xojo Documentation
Read-Only Property (As Boolean )
If True, it indicates that there is a next page that can be navigated to using HTMLViewer.GoForward.
Example
This code in the DocumentComplete event handler disables a Forward button if there is no next page:
ForwardButton.Enabled = Me.CanGoForward