Checking online presence

Switch internet connection on / off or plug in / out network cord to test Online JS

Online JS developed to provide reliable and easy way to check internet connection status and work as fast as possible.

Optimisations implemented:


Include this library into your project and just check is window.onLine === true

Define window.onLineHandler or window.offLineHandler functions to handle status changes.


OnlineJS on Github

Download ZIP