we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "how to disable back js"
Jesús
17 Feb 2018
1history.pushState(null, null, null);
2$(window).on("popstate", function (event) {
3  if (!event.originalEvent.state) {
4    history.pushState(null, null, null);
5    return;
6  }
7});
8