<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://msmvps.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Detect Vista on client machine</title><link>http://msmvps.com/blogs/egoldin/archive/2007/05/21/detect-vista-on-client-machine.aspx</link><description>If you need to know if client&amp;#39;s browser runs on a Vista machine, run javascript navigator.userAgent or navigator.appVersion and search the returning string for &amp;quot;Windows NT 6.0&amp;quot;. If it is there, you are on Vista.</description><dc:language>en</dc:language><generator>CommunityServer 2008.5 SP2 (Build: 40407.4157)</generator><item><title>re: Detect Vista on client machine</title><link>http://msmvps.com/blogs/egoldin/archive/2007/05/21/detect-vista-on-client-machine.aspx#1287805</link><pubDate>Thu, 08 Nov 2007 09:19:27 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1287805</guid><dc:creator>Thomas Nordahl</dc:creator><description>&lt;p&gt;Yup!&lt;/p&gt;
&lt;p&gt;navigator.userAgent returns a string that looks like this in my firefox (on win xp): &amp;#39;mozilla/5.0 (windows; u; windows nt 5.1; da; rv:1.8.1.8) gecko/20071008 firefox/2.0.0.8&amp;#39;&lt;/p&gt;
&lt;p&gt;(navigator.userAgent.toLowerCase().indexOf(&amp;quot;windows nt 6.0&amp;quot;) &amp;gt; -1) will return true if the clients version of windows is vista.&lt;/p&gt;
&lt;p&gt;Will the version 6.0 change if there are service pack upgrades in the future?? perhaps you should only search for &amp;#39;windows nt 6&amp;#39;, so it will work if it changes to 6.1?&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1287805" width="1" height="1"&gt;</description></item><item><title>re: Detect Vista on client machine</title><link>http://msmvps.com/blogs/egoldin/archive/2007/05/21/detect-vista-on-client-machine.aspx#1184191</link><pubDate>Mon, 10 Sep 2007 15:06:46 GMT</pubDate><guid isPermaLink="false">d67277c4-116b-43f1-b688-e9ef184ea916:1184191</guid><dc:creator>Ulf Gleby</dc:creator><description>&lt;p&gt;In Firefox, navigator.appVersion does not contain the string &amp;quot;Windows NT 6.0&amp;quot;. In IE it does.&lt;/p&gt;
&lt;p&gt;Check navigator.userAgent instead. It works for both Firefox and IE.&lt;/p&gt;
&lt;div style="clear:both;"&gt;&lt;/div&gt;&lt;img src="http://msmvps.com/aggbug.aspx?PostID=1184191" width="1" height="1"&gt;</description></item></channel></rss>