navigator.onLine by Gabriel May 23, 2016 HTML <input type="button" onclick="alert(navigator.onLine)" value="Online?" />