title: How to detect forward button availability?
body: <p>I would like to use navigation buttons to go back and forward in the history on an hybrid mobile app. So far, <code>window.history.back()</code>and <code>window.history.forward()</code>are working juste fine.</p>
  
  <p>However, I would like to change the forward button style according to its availabilty.</p>
  
  <p>How to know if the forward button is available? How to know if the user clicked on a back button on the previous page?</p>