Changing the URL without reloading the page

前端 未结 7 2103
轮回少年
轮回少年 2020-11-29 06:41

I would like to know if it\'s possible to change the contents of the URL in the browser without reloading the page?

I use jQuery and Ajax to load new parts of my pag

7条回答
  •  借酒劲吻你
    2020-11-29 07:11

    You will have to add hash # if you want to prevent page from reloading.

    The css-tricks.com has an excellent screencast on that, have a look at:

    Best Practices with Dynamic Content

提交回复
热议问题