Skip to content

Instantly share code, notes, and snippets.

@vishaltelangre
Created April 17, 2013 17:16
Show Gist options
  • Save vishaltelangre/5406090 to your computer and use it in GitHub Desktop.
Save vishaltelangre/5406090 to your computer and use it in GitHub Desktop.
Check Adobe flash plugin support for browser
// check flash support for visitor browser
function isFlashSupported() {
var hasFlash = false;
try {
var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash');
if(fo) hasFlash = true;
}catch(e){
if(navigator.mimeTypes ["application/x-shockwave-flash"] != undefined) {
hasFlash = true;
}
}
return hasFlash;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment