How to detect flash is installed or not using JavaScript ? Last Updated : 19 Jan, 2023 Summarize Comments Improve Suggest changes Share Like Article Like Report The task is to detect whether the user has installed Adobe Flash player or not with the help of JavaScript. we're going to discuss 2 techniques. Approach: Create a ShockwaveFlash.ShockwaveFlash object.If the instance's value is true, Flash is installed.If any error occurred, Use navigator.mimetypes property to know whether the flash is installed. Example 1: This example checks whether the flash player is installed or not. html <h1 style="color:green;"> GeeksforGeeks </h1> <p id="GFG_UP"> </p> <button onclick="GFG_Fun()"> click here </button> <p id="GFG_DOWN"> </p> <script> var el_up = document.getElementById("GFG_UP"); var el_down = document.getElementById("GFG_DOWN"); el_up.innerHTML = "Click on the button to check"+ " whether Adobe Flash is installed or not"; var Flash = false; function GFG_Fun() { try { Flash = Boolean(new ActiveXObject('ShockwaveFlash.ShockwaveFlash')); } catch (exception) { Flash = ('undefined' != typeof navigator.mimeTypes[ 'application/x-shockwave-flash']); } el_down.innerHTML = Flash; } </script> Output: How to detect flash is installed or not using JavaScript ? Example 2: This example checks the flash player is installed or not. html <h1 style="color:green;"> GeeksforGeeks </h1> <p id="GFG_UP"> </p> <button onclick="GFG_Fun()"> click here </button> <p id="GFG_DOWN"> </p> <script> var el_up = document.getElementById("GFG_UP"); var el_down = document.getElementById("GFG_DOWN"); el_up.innerHTML = "Click on the button to check whether" + " Adobe Flash is installed or not"; var Flash = false; function GFG_Fun() { try { var fo = new ActiveXObject('ShockwaveFlash.ShockwaveFlash'); if (fo) { hasFlash = true; } } catch (e) { if (navigator.mimeTypes && navigator.mimeTypes[ 'application/x-shockwave-flash'] != undefined && navigator.mimeTypes['application/x-shockwave-flash' ].enabledPlugin) { hasFlash = true; } } el_down.innerHTML = Flash; } </script> Output: How to detect flash is installed or not using JavaScript ? Comment More infoAdvertise with us Next Article How to check if CSS property is supported in browser using JavaScript ? P PranchalKatiyar Follow Improve Article Tags : JavaScript Web Technologies JavaScript-Questions Similar Reads Detect a device is iOS or not using JavaScript In order to detect a device whether it is iOS or not. We're going to Navigator platform and Navigator userAgent property. Navigator userAgent property This property returns the value of the user-agent header which is sent by the browser to the server. Returned value, have information about the name, 2 min read How to detect the Internet connection is offline or not using JavaScript? Detecting if the internet connection is offline using JavaScript involves utilizing the navigator.onLine property. This property returns false when the browser is offline and true when connected, allowing you to respond to network connectivity changes in real-time.Syntax: function isOnline() { retur 1 min read How to check if CSS property is supported in browser using JavaScript ? Few CSS properties are not supported in some browsers, thus it is required to check whether a CSS property & its value are supported in the current browser. We can find it using JavaScript using CSS.supports() method. Syntax: supports(propertyName, value) supports(condition) There are two distin 2 min read How to detect touch screen device using JavaScript? Sometimes you might be looking for some features to include into your web-app that should only be available to devices with a touch screen. You may need this detection while introducing newer smarter controls for touch screen users in the game app or a GPS and navigation application. While there are 3 min read How to check the user is using Internet Explorer in JavaScript? There may arise cases when we need to check the browser being used. Some features of your website may not be supported in older browsers like Internet Explorer(IE). There are different ways to check the version of Internet Explorer being used. Syntax-1: For Internet Explorer 10 or older var ua = win 2 min read How to detect HTML <canvas> is not Supported by JavaScript? To detect if the HTML5 <canvas> element is supported by JavaScript, the existence of the getContext method is checked. This method is essential for rendering graphics on the canvas.Approach: Using getContext() methodThe getContext() method retrieves the drawing context of a canvas element and 2 min read Like