Can I disable the mouse back button / forward button?

Mouse back / front buttons cause unexpected problems. I would like to disable these features. Windows environment. If you have an alternative, please let me know.

Have you found a solution for this? I’m trying to do exactly the same thing. I tried using with event.preventDefault()

I did’t find way how to disable it.

But, if you are using Vue/React/Angular, you can disable route navigation on this level.

In my case it’s Vue with Nuxt and plugin to solve it is here