Move to another url
I inherited some code which moves to another page, where page is a url. $('body').html(page); it wo开发者_开发问答rks but there is no way to use IE back button to move back to the previous page.
I'm looking for better ways move to another url but preserve all the pages in the IE back button.
Ideas?
Use javascript function
window.location.replace()
you can use window.location.href to send your page to another, and use javascript:history.go(-1) to go back in your browser
精彩评论