javascript go to previous page

JavaScript
<input
    action="action"
    onclick="window.history.go(-1); return false;"
    type="submit"
    value="Cancel"
/>
Source

Also in JavaScript: