主题标题不言自明。 是否可以通过javascript检查客户端是否安装了JDK? 我知道可以检查操作系统和浏览器,但这也可能吗?
最佳答案
您可以使用 window.navigator.javaEnabled()
检查客户端是否启用了 java。
注意:
The return value for this method indicates whether the preference that controls Java is on or off - not whether the browser offers Java support in general.
有关更多信息,请查看 https://developer.mozilla.org/en/DOM/window.navigator.javaEnabled
关于javascript - 通过javascript检查是否安装了JDK,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6490478/