$(window).on('popstate') is not working in IE
问题 $window 'popstate' event is not working in IE on browser back button. Below is the code snippet which is getting used to remove some modal classes on back button. $(window).on('popstate', function(event) { event.preventDefault(); event.stopPropagation(); $('.modal-backdrop').remove(); $('body').removeClass( 'modal-open' ); }); Issue - when Modal is open and on click of browser back button trying to remove modal classes on previous page which is coming after click of browser back button. In