This is a simple jQuery Plugin that uses an AJAX request to determine whether the client machine is connected. It is free to use under MIT license. License