如何使用javascript禁用浏览器中的后退按钮 [英] How to disable back button in browser using javascript
本文介绍了如何使用javascript禁用浏览器中的后退按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
想要禁用网站的后退按钮
Want to disable back button for a website
每当用户点击浏览器后退按钮时,它就不能进入他之前访问过的页面。
whenever the person click on browser back button it should not be able to go on the page he visited before.
推荐答案
你不能,也不应该。
每一个其他方法/替代方案只会导致用户参与度非常差。
every other approach / alternative will only cause really bad user engagement.
这是我的看法。
这篇关于如何使用javascript禁用浏览器中的后退按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文