コメントありがとうございます。 皆様のコメントのおかげで更新が頑張れます。 これ…
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);
コメントを残す