I would guess that they are using the History API. By listening to popstate
window.addEventListener("popstate", function(e) { ... });
you can show a warning before allowing doing anything stupid.
More Related Contents:
- Is there any way to use window.onbeforeunload on Mobile Safari for iOS devices?
- window.onbeforeunload not working on the iPad?
- Force link to open in mobile safari from a web app with javascript
- How to open a native iOS app from a web app
- iOS 8 removed “minimal-ui” viewport property, are there other “soft fullscreen” solutions?
- Copy to clipboard using Javascript in iOS
- Simplest way to detect a pinch
- Programmatically focus on next input field in mobile safari
- How to detect in iOS webapp when switching back to Safari from background?
- Difference between onbeforeunload and onunload
- How to open Safari from a WebApp in iOS 7
- Detect if page is loaded inside WKWebView in JavaScript
- Is it possible, in JavaScript, to detect when the screen is turned off in the Android & iOS browsers
- How can I override the OnBeforeUnload dialog and replace it with my own?
- Detect if device is iOS
- How do I correctly detect orientation change using Phonegap on iOS?
- Phonegap – Save image from url into device photo gallery
- How to invoke Objective-C method from Javascript and send back data to Javascript in iOS?
- Loading javascript into a UIWebView from resources
- Call JavaScript function from native code in WKWebView
- Invoke method in objective c code from HTML code using UIWebView
- programmatically changing webkit-transformation values in animation rules
- Invoke native date picker from web-app on iOS/Android
- Strange behavior of select/dropdown’s onchange() JS event when using ‘Next’ on Mobile Safari Dropdown list item select box
- How can I run background tasks in React Native?
- Browser waits for ajax call to complete even after abort has been called (jQuery)
- Javascript date parsing on Iphone
- how to intercept Button click inside UIWebview on IOS?
- Handling standby on iPad using Javascript
- How to display onbeforeunload dialog when appropriate?