Detecting OS version in Javascript and redirecting
问题 Good Day I have done some research and found that you can use the following javascript to detect a users OS, whether it is Android, iOS, Windows etc: var OSName="Unknown OS"; if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows"; if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS"; if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX"; if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux"; document.write('Your OS: '+OSName); Now what I would like to do is to