Detect Internet Connection with JavaScript

Detect Internet Connection with JavaScript

Sometime, it becomes necessary to know about status of internet connectivity. We can know about internet connectivity in PHP also, but it is not good practice. Using client side language to detect internet connectivity is good practice because it gives connection status without reloading a page. So, using browsers property (navigate.online) we can easily confirm … Read more