How to determine if Java is enabled in IE?

Possible duplicate:
Determine if java client browser is installed and can run applets

I would like to run a check to check if Java is installed or disabled / blocked in IE.

I tried navigator.javaEnabled () and it works as expected in Firefox (v10.0.2), but in IE8 it returns TRUE, However IE displays a prompt to the user:

The page you are viewing uses Java.
Additional Java support information is available on the Microsoft website.

The problem with this is that there is a checkbox "Do not show this message again" , which can be checked, and then the user will no longer be asked not to enable Java.

How can I deal with the lack of Java support in IE?

+6
source share
1 answer

From this link:

navigator.javaEnabled () does not show whether Java is installed or not in IE. It just tells you whether the applet tag is enabled or disabled.

You can disable the applet tag in the IE security settings ... Tools → Internet Options → Security → User Level → Java Permissions → Disable Java

This will cause javaEnabled () to be false, but Java is still installed. In this regard, it is also not disabled. Only applet tag is disabled.

And from the same link:

The JRE (formerly Java Virtual Machine or JVM) is actually more difficult to handle than you think. Determining whether Java is easy to install - a quick call to navigator.javaEnabled () returns a simple Boolean. * The problem is the version and provider (Microsoft or Sun) are detected.

I have not found a satisfactory solution. The bottom line is: get this information, you must download the Java applet.

Here is another example:

Determine if java client browser is installed and can run applets

+2
source

Source: https://habr.com/ru/post/910011/


All Articles