0

I have code that blocks back button in the browser, however, it doesn't work,

function test (e) {
        if (performance.navigation.type == 2)  {
            e.preventDefault();
        }
    }

Is there a solution that will work on major browsers, can anybody try to help me with this?

Ivan Nukli
  • 57
  • 4

0 Answers0