Possible Duplicate:
Check if Internet Connection Exists with Javascript?
I have been working on a manual to be sent via CD to a customer. The owner of my company requires that the manual be split into many subsections as .doc and .docx files. The table of contents for this manual will be an HTML page, to be run by autorun when the CD is put into the computer.
I can be fairly sure that the computer is a windows computer, but that's about it. My current thinking is to use this script to take advantage of google to display the word file, but only if the computer is actually connected to the internet. That way I don't have to rely on the customer having a particular version of word (or having a compatibility pack installed).
From the research I've done, relying on a computer to correctly recognize that a link to a word document should be opened with word is problematic, and has to be resolved at the user end.