Is it possible to stop a browser storing a URL in its history?

后端 未结 3 1772
我寻月下人不归
我寻月下人不归 2021-01-03 23:43

When a user clicks to a page using a link on a previous page, is it possible for the target page to, on its own accord, remove its own URL from browser history (without sign

3条回答
  •  旧时难觅i
    2021-01-04 00:26

    It looks like this is not possible.

    The browser history will store the URL. The best that can be done is either to prevent the URL from going into the back/forward buttons, or use "techniques such as fetching pages with AJAX, iframes, etc, where the user does not actually navigate to said URL, but still manages to get content from it".

提交回复
热议问题