开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜