How do I get scrollbars to show in Mobile Safari?

Assuming you are using iOS5.0 or later, I think you have to use the following: -webkit-overflow-scrolling: auto (this is default style) auto: One finger scrolling without momentum. The other available style is -webkit-overflow-scrolling: touch touch: Native-style scrolling. Specifying this style has the effect of creating a staking context (like opacity, masks, and transforms). Using touch … Read more

Is it possible, in JavaScript, to detect when the screen is turned off in the Android & iOS browsers

There is few options to check it: Using Visibility API Using focus and blur events to detect browser tab visibility: window.addEventListener(“focus”, handleBrowserState.bind(context, true)); window.addEventListener(“blur”, handleBrowserState.bind(context, false)); function handleBrowserState(isActive){ // do something } Using timers, as mentioned above

Detect if page is loaded inside WKWebView in JavaScript

The accepted answer doesn’t work as tested using the WKWebView vs UIWebView app As the article mentions, the only HTML5 feature difference is IndexedDB support. So I’d go for a more reliable pattern with: if (navigator.platform.substr(0,2) === ‘iP’){ //iOS (iPhone, iPod or iPad) var lte9 = /constructor/i.test(window.HTMLElement); var nav = window.navigator, ua = nav.userAgent, idb … Read more