I want to make it so when you press any key it will redirect to you the page you last visited, but history.back() doesnt’ work. Anybody know how to do this?
@TJ111Dec 03.2007 — #Remove the quotes around the "history.back()", as you are referencing an object, but with quote around it javascript will treat it like a string. The proper way to do this (i think) for full cross-browser support is like this: <i> </i><body onkeyup="window.location.href = window.history.back(1)">