I want to disable back button of any browser after Successful Login but not all pages
only next page after Login.I use Javascript but browser arrow seen
Code:-
function disableBackButton() {
window.history.forward()
}
disableBackButton();
window.onload = disableBackButton();
window.onpageshow = function (evt) { if (evt.persisted) disableBackButton() }
window.onunload = function () { void (0) }
but this Code forcefully back and that time back page seen
any Solution to disable back arrow of browser

Salman BegRank #284 · 8.8K reputationPosted Nov 8, 2016, 7:31 PM EST
Prashant KumarRank #316 · 8K reputationPosted Nov 22, 2016, 3:55 AM EST
Brijesh RathorRank #7,391 · 242 reputationPosted Nov 23, 2016, 9:54 PM EST
Vanama Dinesh14 reputationPosted Nov 29, 2016, 10:39 PM EST
Harshal PatilRank #9,687 · 203 reputationPosted Dec 7, 2016, 12:11 AM EST
script>