ブラウザーの戻るを禁止
history.pushState(null, null, location.href);
window.addEventListener('popstate', (e) => {
history.go(1);
});
history.pushState(null, null, location.href);
window.addEventListener('popstate', (e) => {
history.go(1);
});