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
  • 57,710
  • 92
  • 283
  • 453

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,521
  • 3
  • 22
  • 32