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