When the user goes history-back-1...how do I detect that? And then, alert \"the user clicked back!\"
Using binds (and jQuery preferably)
On the page you are looking at, you can add this piece of code to the onLoad event to move them back the page they were on.
onLoad
if(history.length>0)history.go(+1)
If you want the alert then make it
if(history.length>0)alert("the user clicked back!")