history.pushState(null, null, location.href);
window.onpopstate = function(event) {
history.go(1);
}; Не работает нормально, после обновления страница опять разрешает вернуться назад.
There is no way to clear the session history or to disable the back/forward navigation from unprivileged code.