如何检查Java插件是否启用或不使用JavaScript? [英] How to check whether java plugin is enabled or not using javascript?
本文介绍了如何检查Java插件是否启用或不使用JavaScript?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个小程序组成code的.aspx页。为了运行此,浏览器必须具有有效的Java插件。
有没有什么办法来检查一个Java插件是否已安装并启用,使用Javascript?
解决方案
window.navigator.javaEnabled()//启用true,如果java的window.navigator.plugins //将要给你安装在浏览器的所有插件
I have an .aspx page which consists of applet code. In order to run this, the browser must have an active Java plugin.
Is there any way to check whether a Java plugin is installed and enabled, using Javascript?
解决方案
window.navigator.javaEnabled()//true if java enabled
window.navigator.plugins // will give u all the plugins installed in the browser
这篇关于如何检查Java插件是否启用或不使用JavaScript?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文