I don\'t understand why in Firefox, window.history.back() does work on a button:
window.history.back()
Go back
Try with
window.history.go(-1)
Check the link for more details.