I want to disable browser back button. So I used below code
<script type = "text/javascript" >
history.pushState(null, document.title, location.href);
window.addEventListener('popstate', function () {
history.pushState(null, document.title, location.href);
});
</script>
It was disable browser back button but Afert submit a page and refresh that page there was a error. page not found.