Check for working internet connection using JavaScript

1
2
function checkInternet() {
var status = navigator.onLine;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Simple script that verifies if the client's browser is connected to the Internet.

#javascript #internet #connection #navigator #online

#cesarnog

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.