Jump to content

Check OS Javascript


Recommended Posts

<HTML>
<script type = "text/javascript" >
<!--

if(navigator.platform == "Win16" )var os= "Windows 3.1";
if(navigator.platform == "Mac" ) os = "MacOS";
if(navigator.platform == "Win32") os = "Windows 95 or above";
if(navigator.platform == "Win64") os = "Windows NT 5.1.2600";

document.write ( "Operating system is " + os);

</script>
</HTML>

Use the above code to check which OS a person is running on entering your web site

Link to comment
Share on other sites


Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...