How to check with JS if flash is installed, or not? I don’t want to detect the version, or other informations. I want to check only, if it’s avaiable, or not.
The swfobject library makes it (and many other things, which are unneccessary for that), but I don’t want to use a library for only one function.
If you’re using Flash to progressively enhance a document, please use this script to feature detect it first.
hasFlashwill betrueif Flash is available, or falsy if it isn’t.If you already have access to the Flash element you want to use then you could just do:
Source: https://gist.github.com/675496