admin管理员组文章数量:1341745
Using javascript (I'm using jQuery if that simplifies things), how can I clear the back button history?
I do not mean the entire browser history.
I mean the history in the tab back button.
Using javascript (I'm using jQuery if that simplifies things), how can I clear the back button history?
I do not mean the entire browser history.
I mean the history in the tab back button.
Share Improve this question asked Nov 15, 2013 at 14:40 sergsergsergserg 22.3k43 gold badges133 silver badges185 bronze badges 6- 1 tbh, I don't you think this should be possible. I hate websites that do this. – Phil Commented Nov 15, 2013 at 14:42
- There is no method clear in developer.mozilla/en-US/docs/DOM/window.history – Tushar Gupta - curioustushar Commented Nov 15, 2013 at 14:42
- check: stackoverflow./a/2196109/2600397 – Kevin Cittadini Commented Nov 15, 2013 at 14:43
- @Phil: I need to do this because pressing back after logging out redisplays the screen. Of course nothing is clickable or usable, but the browser cache thinks it's a good idea to redisplay the view from cache. – sergserg Commented Nov 15, 2013 at 14:45
- possible duplicate of How to clear browsing history using javascript – Factor Mystic Commented Dec 19, 2014 at 18:50
1 Answer
Reset to default 7You cannot remove the entire back button history. All you can do is replace the last entry with the next page, using window.location.replace('url');
本文标签: jqueryHow to clear back button history using JavascriptStack Overflow
版权声明:本文标题:jquery - How to clear back button history using Javascript? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1743625906a2512281.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论