2017-09-08 6 views

答えて

0

OK]をクリックして、完了しているコメントと例をテストした:

<!DOCTYPE html> 
<html> 
    <head> 
    <meta charset="utf-8"> 
    <title>Test</title> 
    <script> 
     // Add actual page to history 
     history.pushState(null, null, location.pathname) 

     // Register back button click 
     window.onpopstate = function (e) { 
     // Prevent default action on back button click 
     e.preventDefault() 
     // Add actual page to history again 
     history.pushState(null, null, location.pathname) 
     } 
    </script> 
    </head> 
    <body> 

    </body> 
</html> 
+0

私はそれは、返信用のおかげで作業をdoesntのHTMLのheadに入れて! – Linvincible

+2

あなたのソリューションが何をしているのかを説明する必要があります。コードのみの回答はお勧めできません。 – Jens

関連する問題