How to detect if Java is enabled in IE? [duplicate]

回眸只為那壹抹淺笑 提交于 2019-12-05 08:21:48
paulsm4

From this link:

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

You can disable the applet tag in the IE security settings … Tools -> Internet Options -> Security -> Custom Level -> Java Permissions -> Disable Java

This will cause javaEnabled() to be false, yet Java is still installed. For that matter, it isn’t disabled either. Only the 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 would think. Determining if Java is installed is easy—a quick call to navigator.javaEnabled() returns a simple Boolean.* The problem is detecting the version and provider (Microsoft or Sun).

I never found a satisfactory solution to this. The gist is this: to get this information, you must load a Java applet.

Here's another example:

Determine whether client browser has java installed and can launch applets

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!