JavaScript detect OS version
OSName="Win 7";
else if ((OS.indexOf("Windows NT 6.0")!=-1))
OSName="Win Vista/Server 08";
else if (OS.indexOf("Windows ME")!=-1)
OSName="Win ME";
else if ((OS.indexOf("Windows NT 4.0")!=-1) || (OS.indexOf("WinNT4.0")!=-1) || (OS.indexOf("WinNT")!=-1))
OSName="Win NT";
else if ((OS.indexOf("Windows NT 5.2")!=-1))
http://www.byteblocks.com/page/How-to-verify-Windows-7-operating-system-using-VerifyVersionInfo.aspx
Reference:
- http://webcache.googleusercontent.com/search?q=cache:9Ri9Q_b_cq0J:douglubey.com/JavaScriptHowToDetectOperationSystemBrowserDivTags.aspx+javascript+detect+win7&cd=1&hl=zh-TW&ct=clnk&gl=tw
- http://douglubey.com/JavaScriptHowToDetectOperationSystemBrowserDivTags.aspx
- http://webcache.googleusercontent.com/search?q=cache:z0vQ777L3n4J:www.javascripter.net/faq/operatin.htm+java+script+OS+detect&cd=1&hl=zh-TW&ct=clnk&gl=tw
沒有留言:
張貼留言