I need to make a script that redirects the user the same way as if the back button on the webbrowser was pushed. How, and is it possible?
setTimeout(function () {
window.location.href = "???";
}, 3000);
I need to make a script that redirects the user the same way as if the back button on the webbrowser was pushed. How, and is it possible?
setTimeout(function () {
window.location.href = "???";
}, 3000);
history.back()
The back() method of the history object loads the previous URL in the History list. The functionality results are the same as pressing the previous button of the browser.
General syntax of back method of history Object:
history.back();