I'm modifing a project which import the next script in all pages:
function nbb(){
window.location.hash="";
window.location.hash="Again-No-back-button" //chrome
window.onhashchange=function(){window.location.hash="";}
}
imported this way:
<body onload="nbb();">
remove the importation isn't a option for now, so I want to disable, unset or redefine the script because I'm using angular and if I want to go to another route like /#otherRoute
this script is won't let me because go back to the root index.
I've tried with:
window.onhashchange = undefined;
or redefine it but nothing works.
Thanks in advance.