open_in_new
content_copy
if (navigator.onLine){ alert('You r connected!'); } else { alert('No connection :('); }