amalosoul Posted March 12, 2007 Share Posted March 12, 2007 Can I change this object so that I may load a another page when I hit the back button (and not the page that was before)? Thank you very much! Quote Link to comment Share on other sites More sharing options...
fert Posted March 13, 2007 Share Posted March 13, 2007 history.go(-2); /*This will take you back 2 pages*/ Quote Link to comment Share on other sites More sharing options...
amalosoul Posted March 13, 2007 Author Share Posted March 13, 2007 Yes, but can I set that page history.back(-2) for example to be somepage.php ? Quote Link to comment Share on other sites More sharing options...
mainewoods Posted March 16, 2007 Share Posted March 16, 2007 You are not allowed to modify the history object because that is considered a browser security risk. It is possible to change a window's current URL without an entry being made in the History object by using the location.replace method. Quote Link to comment Share on other sites More sharing options...
amalosoul Posted March 16, 2007 Author Share Posted March 16, 2007 Thank you... Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.