javascript - How to clear the history of the current page
我想大声告诉你
我想大声告诉你 2017-05-19 10:19:00
0
3
656

For example, there are currently 10 historical records, that is

window.history.length; // 10

How to delete these historical records

我想大声告诉你
我想大声告诉你

reply all(3)
伊谢尔伦

History is generally stored locally on the client, so js should not be able to clear it;
You can only start with other ideas, depending on the needs of the subject.

仅有的幸福

It doesn’t seem to work, you can try other methods to achieve the effect you want

刘奇

window.history cannot be cleared

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template