Move backward through history skipping the same page with different query string

后端 未结 1 1304
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-20 17:54

When I refresh a page or redirect to the same one using the same url, I can click in a button with \"window.history.back();\" code and go back to the previous page.

相关标签:
1条回答
  • 2021-01-20 18:14

    Use

    <a href="page2.html?x=123" 
    onclick="location.replace(this.href); return false">Next</a>
    

    to go forward

    0 讨论(0)
提交回复
热议问题