【发布时间】:2016-02-10 09:13:49
【问题描述】:
我有两个剑道菜单,我希望在其中重新加载页面。但是,根据我们客户的请求,他们不希望用户能够单击后退按钮。这是我使用的代码:
<script>
history.pushState(null, null, 'HomePage');
window.addEventListener('popstate', function(e) {
history.pushState(null, null, 'HomePage');
});
</script>
基本上,我想在除了单击这两个剑道菜单的菜单项之外的所有内容上触发该事件。
谢谢
【问题讨论】:
标签: javascript jquery model-view-controller kendo-ui