online event is fired when the browser has gained access to the network and the value of
navigator.onLine switched to
Note: That event shouldn't be used to determine the availability of a particular website. Network problems or firewalls might still prevent that website to be reached.
- HTML5 Offline
- Default Action