2

I plan to use ZeroClipboard which relies on Adobe Flash player being installed on the user browser. How to find out whether Adobe Flash player is installed from Javascript?

Jérôme Verstrynge
  • 55,046
  • 88
  • 271
  • 437

1 Answers1

3

You could use swfobject or:

var flash = false;

try {

  if( new ActiveXObject('ShockwaveFlash.ShockwaveFlash') ) flash = true;

}catch(e){

  if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) flash = true;

}
nick
  • 3,341
  • 3
  • 21
  • 29