VB.NET - HOW TO CHECK IF WEBBROWSER SUPPORTS FLASH?

Hugh Jackman

Total Post:52

Points:366
Posted by  Hugh Jackman
VB.Net 
 1945  View(s)
Ratings:
Rate this:
Hi Developers, 

I have created one web application that used for plays flash videos. I have to check if they have flash for the Internet Explorer (the WebBrowser Element) installed. How can I check this? I saw this in another tool before, but I have no idea how it's working.

Thanks in advance. 
  1. AVADHESH PATEL

    Post:604

    Points:4228
    Re: VB.NET - How to check if Webbrowser supports flash?

    Hi Hugh,


    You can try as following using jQuery

    var _flash_installed = ((typeof navigator.plugins != "undefined" && typeof     navigator.plugins["Shockwave Flash"] == "object") || (window.ActiveXObject && (new    ActiveXObject("ShockwaveFlash.ShockwaveFlash")) != false));

    I hope it helpful for you.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!