title: How can I check to see if a forward history exists in Javascript? (Disabling back button)
body: <p>Got a <code>window.history.go(1)</code> to stop the user hitting the back button, but was wondering if I could check to see if a forward history exists before doing it, so I can display a popup warning the user not to press the back button.</p>
  
  <p>I know you can get the history length, but is there a way to get the current position in the history list? Or some other way of doing this...</p>