Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to know connected internet in js

// example code
let Connected = window.navigator.onLine;
if (Connected) {
  alert('Connection available');
} else {
  alert('Connection not available');
}
 
PREVIOUS NEXT
Tagged: #connected #internet #js
ADD COMMENT
Topic
Name
5+9 =