I have the function: window.history.forward ();
function dontback(){
window.history.forward();
}
<body onload="dontback();">
<form blablabla >
I use it so that the user can not go back, in Chrome and Internet Explorer it works, preventing the user from going back, but in Firefox it does not work. What should I do?
Edit: the version of Firefox that I use is 56.0