Skip to content Skip to sidebar Skip to footer

How To Detect Flash Using Swfobject

I have downloaded SWFObject, and included it in my website. Now I want to simply get a true or false value based on whether or not Flash is installed in the users browser when they

Solution 1:

if (swfobject.hasFlashPlayerVersion("9.0.18")) {
  // has Flash
}
else {
  //no Flash
}

or replace "9.0.18" with the minimum version you require

Solution 2:

If You use jQuery SWFObject you could use:

if (!$.flash.hasVersion('9')) {
 //has Flash
}
else {
 //no_flash
}

Post a Comment for "How To Detect Flash Using Swfobject"