I need to detect whether the client has Java enabled or not on his browser. So I am using the javaEnabled() function [1] to get this information. When using Opera8.51, Firefox1.5, Netscape8.0 on Windows XP SP2, I am getting the correct information about Java being enabled or not. i.e. when there is no JRE on the client PC javaEnabled() function returns false. But when I am using IE, javaEnabled() always returns true, irrespective of whether Java is present on the client PC or not. Can anyone explain this behavior of IE? Regards, -Aayush [1] http://msdn.microsoft.com/workshop/author/dhtml/reference/methods/javaenabled.asp -- Locate me in the blogosphere: http://spaces.msn.com/members/aayushpuri
Aayush Puri wrote: > But when I am using IE, javaEnabled() always returns true, irrespective of > whether Java is present on the client PC or not. Can anyone explain this > behavior of IE? Microsoft some years ago developed its own Java virtual machine (JVM) which might be installed and enabled for those IE versions where you get the result as true. Check the IE settings. -- Martin Honnen --- MVP XML http://JavaScript.FAQTs.com/