Home > Web Front-end > JS Tutorial > body text

Implementation code for javascript detection of browser flash version_javascript skills

WBOY
Release: 2016-05-16 17:58:48
Original
1629 people have browsed it

Record:

Copy code The code is as follows:

(function(){
ver has =0, ver=0;
try{
has=new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
if(has) {
ver = (has.GetVariable("$version") .match(/d /));
}
}
catch(e){
has=navigator.plugins["Shockwave Flash"];
if(has) {
ver = (has.description.match(/d /));
}
}
console.log(ver);//0 means no plug-in
})()
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!