Browser detect not working

admin

Administrator
Staff member
This browser detection code does not work on IE 6.0 that does not have the JVM installed. Any advice on how to change it?

n=navigator;
var jOn=false;
jOn=n.javaEnabled();

var doc=document;dl=doc.layers;da=doc.all;dg=doc.getElementById;n=navigator;db=doc.body;var jOn=false;weSupport=(dg||da||dl);
if (weSupport) {
jOn=n.javaEnabled();
}
if (jOn)
{
//do stuff
}
else {
//failover
}
//-->
 
Back
Top