I tried this method by putting it in my login.cshtml but it doesnt work there at all. Then I tried putting it in my _Layout.cshtml but then it does it's job while affecting the entire website (as expected). Any tips on where I should put or how I should manipulate the code?
here it is here:
function preventBack() { window.history.forward(); }
setTimeout("preventBack()", 0);