Does anyone know of a JScript that actually checks whether there is any history for a page?
I am trying to build a PHP script that puts up one of two buttons: the standard "SUBMIT" button for a form, or a custom button that uses the construction
<A href=\"javascript: history.go(1);
based upon the user history. I want to be able to display the correct button, because if the user goes back one form, and then hits the "SUBMIT" button all history is lost on the next form he is returning to, and they will not be happpy. The history.go(1) works fine, assuming there is any. Otherwise, it does nothing, of course.
So how to know if the user has ever visited the current form, or not, is my question.