javascript – How do you make a page that fills the story?


I've often seen sites like this (most often blogs), where the "back" arrow in the browser just stops working. How can this be done in JavaScript?


In general, as far as I know, this is not safe and the browser will not allow anything to be done with the user's history, but you can follow the links using javascript and then it will not be saved in the browser history, try this:

function link(){   
   return false;
<button onclick="link()">Go to link</button>
Scroll to Top