Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

How can you determine whether a user has a flash player installed on his system using java-script?

user-image
Question added by Yasmeen Husam , Web Developer , Al Fahid Systems
Date Posted: 2019/01/30
Ammar Ayaz
by Ammar Ayaz , Senior Web Developer , Instacommerce

Check, this can help:-

var hasFlash = false; 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; } }

More Questions Like This