Click to See Complete Forum and Search --> : Check For Java plugin


Robert Andrade
08-31-2003, 05:07 AM
hi

Can some please help me out. i need a script so that when pepole vist my web site it frist checks to see if they have java plug in installed if not then it will tell that they need java plug in to view this web site and ask them if they want to download it.

Thanks

Fang
08-31-2003, 06:22 AM
This link (http://www.oreillynet.com/pub/a/javascript/2001/07/20/plugin_detection.html) should help you out with Netscape, but for IE you will have to look for a VB script.

Khalid Ali
08-31-2003, 07:26 AM
try using this as well

if(navigator.javaEnabled()){
//plugin is installed and java is enabled.
}

Fang
08-31-2003, 08:12 AM
See what's installed on Netscape and Gecko engine browsers:

function pluginInfo() {
var list="";
var len=window.navigator.plugins.length;
for(var i=0; i<len; i++) {
list+="\n"+window.navigator.plugins.item(i).name;
}
alert(list);
}