Posted by : Deepak Vasudevan Tuesday, October 07, 2008

Detect Silverlight Availability in the Web Browser with a simple JavaScript

Silverlight is fast getting popular but when we rollout our website with Silverlight features, we should ensure that our users are informe gracefully if they don't have Silverlight installed. Fortunately, the core silverlight functionality is given by Microsoft as a simple JavaScript library. We just need to refer the silverlight.js and then call a simple property. If it returns true, we know that Silverlight is installed on the web browser.

1) Get Silverlight.js from here and refer it from your webpage after duly publishing it to your web page.
2) <Script Language="JavaScript">
if (Silverlight.isInstalled)
alert ("Congrats. Your web browser is enabled with Silverlight Runtime");
</Script>

One Response so far.

  1. Wendy says:

    For getting the sliverlight version, try view the source code at http://checkbrowser.info so you will no how easy it will be.

Popular Post

Blogger templates

Labels

Blog Archive

Followers

Blog Archive

Powered by Blogger.

- Copyright © Lavanya Deepak -Metrominimalist- Powered by Blogger - Designed by Johanes Djogan -