Hello Friends
i want to disable browser back button in mvc not in jquery ( i.e. if we click on browser back button then previous page is not open . i have used some jquey code and this code is work but first , it display the previous page after that show the current page like below
function DisableBackButton() {
window.history.forward()
}
DisableBackButton();
window.onload = DisableBackButton;
window.onpageshow = function (evt) { if (evt.persisted) DisableBackButton() }
window.onunload = function () { void (0) }
).
if any one has answer of this please share as soon as possible.
Thanks
Amit Shukla

Krishna Rajput SinghRank #605 · 4K reputationPosted Jan 4, 2016, 7:35 PM EST