コメントありがとうございます! 一つずつトライしてみます。
jQueryでブラウザバックを禁止してみた
URLに#nbが含まれている場合のみ
ブラウザバックを禁止してみた
(function($){ $(window).on("load", function(){ if(location.hash == "#nb") history.pushState(null, null, null); }); $(window).on("popstate", function(){ history.pushState(null, null, null); }); })(jQuery);
コメントを残す