internet explorer - How to programatically check if a particular version of flash player is installed or not using JavaScript.? -


i have java script code , want check if flash player installed or not , if @ installed version ? requirement demands me achieve without using swfobject. instead want simple javascript code. used following snippet:

currentver = new activexobject("shockwaveflash.shockwaveflash.10");         version = currentver.getvariable("$version"); 

but throwing error msg,

file name or class name not found during automation operation

i want achieve using javascript coding itself, without downloading software swfobject. using ie. kindly me this.

you have of right there, you're missing testing part of it. unfortunately there isn't way access given property tells want. have try create object.

function getflashversion(){  var flash = 'none';  // count down 10.  for(var = 10; > 0; i--)  {    try{     flash = new activexobject("shockwaveflash.shockwaveflash."+string(i));    }catch(e){      //console.log(e);    }    if(flash != 'none')     return flash.getvariable("$version");   }  return 0; } 

Comments

Popular posts from this blog

python - Scipy curvefit RuntimeError:Optimal parameters not found: Number of calls to function has reached maxfev = 1000 -

c# - How to add a new treeview at the selected node? -

java - netbeans "Please wait - classpath scanning in progress..." -