Possible to rewrite url clientside with javascript without reloading page

前端 未结 4 500
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-31 06:16

Is it possible to rewrite the URL in the URL-field on the client\'s browser?

So when a person clicks on a link on my page something ajax happens (eg a tab shows up)

4条回答
  •  一整个雨季
    2020-12-31 07:11

    The only possible solution is to append an anchor. Then you can use somwething like reallysimplehistory to allow the user to bookmark a page or use the back button within you ajaxified page.

    I have done that with a tabbed page in the past, too.

提交回复
热议问题