JavaScript to get the user's client OS version _ javascript skills

Source: Internet
Author: User
Today, my colleagues reported that some computers accessed the system and reported an error when installing the player (MediaPlayer). I did not test the problem on my own computer. But I went to the user's site to check the situation. Some computers did have such problems, I don't know where the problem is. I hope to help solve it. In the afternoon, I went to the user's site and felt that the problem was indeed quite strange. Finally, I found that the computer with the problem was Windows 2000, and I felt that the problem was probably caused by google surfing the Internet, it is found that Media Player 11 does not support the Win2000 system. You need to determine the version of the Player you want to download based on your operating system, so that Win2000 users can download Media Player 9.
Well, the cause of the problem is found. Solving the problem is very simple.
The following describes how to use JavaScript to determine the user's operating system and version.
Key part:
Window. navigator. userAgent: information such as the User's browser and operating system, corresponding to the User-Agent section of the HTML request file header.
Code Section:
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.