To detect whether the browser supports cookie functionality
<script>
if (navigator.cookieenabled)
{
document.write ("Your browser supports cookie functionality!") ");
}
else{
document.write ("Your browser does not support cookie!");
</script>
Check to see if the browser has Java support enabled
<script type= "Text/javascript" >
document.write ("Navigator object Method" + "<br>");
if (navigator.javaenabled ())
{
document.write ("browser supports and enables Java methods!") "); Prompts the user to support Java methods
}
else
{
document.write (browser does not support or Java-enabled methods!) "); Prompts the user not to support Java methods
}
</script>
Information for the current browser
<script type= "Text/javascript" > with
(document)
{
write ("Your browser information:<ol>");
Write ("<li> code:" +navigator.appcodename);
Write ("<li> name:" +navigator.appname);
Write ("<li> version:" +navigator.appversion);
Write ("<li> language:" +navigator.language);
Write ("<li> compiler platform:" +navigator.platform);
Write ("<li> user header:" +navigator.useragent);
}
</script>
The above mentioned is the entire content of this article, I hope you can enjoy.