javascript - JQuery Mobile Detected if there's internet Connection -


what best way detect if there's internet connection or not on mobile via web app?

there's no code necessary -- it's part of html5 api. check value of window.navigator.online -- false if user offline.

http://www.whatwg.org/specs/web-apps/current-work/multipage/offline.html#browser-state


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -