Jul 11
You can use the following JavaScript code in a web page to determine which versions of .NET are installed on a client PC:
<script language=”JavaScript” type=”text/javascript”>
var a = navigator.userAgent.match(/.NET CLR [0-9.]+/g);
if (a == null)
document.write( “Microsoft .NET is not installed on your PC” )
else
{
document.write( “The following versions of Microsoft .NET are installed on your PC:<br/>” )
for (i = 0; i < a.length; ++i)
{
document.write( a[i] )
document.write( “<br/>” )
}
}
</script>
Here is the code in action:
Article published on July 11, 2007
If you like this article, please share it: |
July 11th, 2007 at 7:48 pm
Great tips ’round here! Keep ’em coming!
September 1st, 2007 at 9:42 pm
This jscript doesn’t appear to work on firefox, any ideas why?
March 31st, 2008 at 1:57 pm
Unfortunately this only works on Internet Explorer. If anyone knows how to make this work on FireFox, please comment!
May 18th, 2010 at 12:26 pm
[…] do I know if I already have .NET? By sadanandms We have queried your Web browser, and it tells us that you have the following .NET versions installed on your PC (note this only […]
April 10th, 2011 at 9:50 am
[…] have queried your Web browser, and it tells us that you have the following .NET versions installed on your PC (note this only […]