js阻止返回功能
window.onload = function(){
window.history.pushState(null, "第2个页面", 'stopReturn2.html');
window.addEventListener('popstate',function(){
window.history.pushState(null, "第2个页面", 'stopReturn2.html');
location.reload(true);
});
}
第二个页面同样写法 ,不过指向第一个页面

浙公网安备 33010602011771号