I need to set the the page the browser will go to when the back button is pressed. Any ideas on how to do this with javascript without using the location.replace method? Also, is there any way to determine when the back button has been pressed and run a function because of it? Thanks!