Go Back to Previous Page

You can use a link to invoke history.go(-1) in Javascript, which is essentially equivalent to clicking the Back button. Ideally, however, it’d be better to just create a link back to the URL from whence the user was posted to the form – that way the proper “flow” of history is preserved and the user doesn’t wonder why they have something to click “Forward” to which is actually just submitting the form again.

Leave a Comment