Check if user is connected to the internet using JavaScript

Published --