Home >Web Front-end >JS Tutorial >js implements web page detection whether the Flash Player plug-in is installed_javascript skills

js implements web page detection whether the Flash Player plug-in is installed_javascript skills

WBOY
WBOYOriginal
2016-05-16 19:10:391028browse

For other plug-ins, just change the sID


[Ctrl A select all Note: If you need to introduce external Js, you need to refresh to execute
]<script> function testPlugin(){ sID="{D27CDB6E-AE6D-11cf-96B8-444553540000}" with(info){ addBehavior('#default#clientcaps') info.innerText=isComponentInstalled(sID,"componentid")?'Flash插件已安装,版本:'+getComponentVersion(sID,"componentid"):"未安装插件" } } window.attachEvent("onload",testPlugin) </script>
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn