I have 2 buttons Submit, which posts the data and gets back validation errors from the server, and a Cancel which calls window.history.back().
window.history.back()
In case you ever need to use back again, the safe cross-browser option was to use history.go(-1);