Is there a way in JavaScript or in HTML to check if there is an active connection to the internet? .... If there is no connection the browser's connection window pops-up. I want to prevent this and do nothing !

any way ??

Thanks -- Wouter