last time i put this custom disable browser back button (Javascript) in my AMP websites page ( websites ).
I use this script to reduce the bounce rate in seo. But after requesting indexing in google search console i got some problem with "There is a required attribute missing from the HTML tag" in this script.
Does anyone know what is the solution to disable this browser back button script on AMP Pages?
<script type = "text/javascript" > history.pushState(null, null); window.addEventListener('popstate', function(event) { history.pushState(null, null); }); </script>
By the way, my page is fully custom html AMP page, so all my css, html, scripts are concatenated inside index.html file.
Websites: luckysanto.com