Ritesh Singh
How to disable disable browser's Back button in asp.net (JavaScript)?
By Ritesh Singh in ASP.NET on Aug 19 2016
  • Ritesh Singh
    Aug, 2016 19

    Below JavaScript function to disable back button of browser:- Call above function on button onload event:

    • 3
  • Jiyaul Mustapha
    Jul, 2019 27

    • 0
  • Jiyaul Mustapha
    Jul, 2019 27

    <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>

    • 0
  • Srikant Maruwada
    Jan, 2018 5

    • 0
  • Srikant Maruwada
    Jan, 2018 5

    • 0
  • Srikant Maruwada
    Jan, 2018 5

    • 0
  • Srikant Maruwada
    Jan, 2018 5

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS