Answers for "check if connection established with router js"

0

check if connection established with router js

window.addEventListener("offline", (event) => {
  const statusDisplay = document.getElementById("status");
  statusDisplay.textContent = "OFFline";
});

window.addEventListener("online", (event) => {
  const statusDisplay = document.getElementById("status");
  statusDisplay.textContent = "Online";
});
Posted by: Guest on May-02-2021

Code answers related to "check if connection established with router js"

Code answers related to "Javascript"

Browse Popular Code Answers by Language