QUOTE
i want to test the network connection on the client itself.....that is if the client has a valid internet connection at a perticular time!!
Windows: use the Task Schedular to launch nslookup & traceroute, log the results
Linux : create a crontab to perform nslookup & trecroute, again, log the results
QUOTE
......and i dont understand why you showed me the osi model??i know what an osi model is.......its just i didnt understand what u r tryin to imply.....can u explain more in detail
The client requesting an HTML connection/site is at the application level. When the webserver receives that request, & answers it, it is again, at the application level. That leaves six other levels for error, as well as the server itself, not running. So you would not want to issue a test (if it were even possible) using Javascript, because that's at the application level & can give you a WORLD of invalid (not true) failure results.