Below JavaScript function to disable back button of browser:- Call above function on button onload event:
<script type="text/javascript">function DisableBackButton() {window.history.forward()}DisableBackButton();window.onload = DisableBackButton;window.onpageshow = function (evt) { if (evt.persisted) DisableBackButton() }window.onunload = function () { void (0) }</script>