I would like to create a javascript to detect what Operating System a user has and send the user to particular web page depending on whether they use Windows XP or Windows 2000 Professional.
</script>
<script language=”JavaScript”>
var OSName=”Unknown OS”;
if (navigator.appVersion.indexOf(“5.1”)!=-1);
window.location=”
Else
window.location=”
</script>
This is what I have so far but it only goes to the first page no matter what operating system I have. What do I have wrong?
Please be gentle, I am a newbie to scripting. If there is a good resource where I can learn how to do more of this, please let me know.
thanks,