net is online in browser code example Example: check online status javascript // In Console type >navigator.onLine // Boolean to check online status