posted 23 years ago
You can grab the "user-agent" request header in order to sniff the browser and version. But keep in mind that this is not fool-proof since the header can be spoofed. Also parsing this header is not deterministic since there is no "standard" format for what is returned.
If you are just checking for a few major browsers, then you can check the headers they return and code some specific checks. But a general solution is difficult. (For example, if someone using a 3Com Audrey hits your page, it will report that it is Netscape 4 running on Windows 98!)
You can't check if JavaScript is enabled using JavaScript because if it isn't enabled, you can't run ANY.
There are some tricks you can use though, that have been discussed in these forums. Do a search and you are liable to find a few.
hth,
bear