Detect Windows Version With JavaScript

后端 未结 3 1241
攒了一身酷
攒了一身酷 2020-12-30 03:20

Specifically, I am trying to detect Windows XP users as they are not compatible with my software.

Is there a way to detect with at least 70% or higher accuracy?

3条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-30 04:11

    window.navigator.appVersion.split("NT")[1].split(";")[0].trim()
    

    Will return the Windows version.

提交回复
热议问题