I am working with ASP.NET Core 2.2 MVC.
I try this code in JavaScript:
window.history.forward(1);
but it did not work. I want to stop back button after logout.
Please help me
I am working with ASP.NET Core 2.2 MVC.
I try this code in JavaScript:
window.history.forward(1);
but it did not work. I want to stop back button after logout.
Please help me
Copyright © 2021 Jogjafile Inc.
Try this ?
I newly created an asp.net core 2.1 mvc project and I add these code in home page, then after starting the program, browser comes to home page, then I click to visit "about" page, and then click the back button in the browser, then it can't go back to the home page. The code snippet is at the bottom of the index.cshtml file
Per my test, even using code below also worked
As the executing order is from top to bottom, first and next. All code or doms executed, then trigger the onload() method, and certainly, though
$(document).readyis beforewindow.onload()but they all behind the other scripts.