Detect Mac OS?

Quick one here: how do I detect Mac OS, so I can redirect mac lovers?
idropAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
kollegovConnect With a Mentor Commented:
<script>
if(navigator.userAgent.indexOf("Mac")!=-1)
  {document.location="formacusers.html"
  }
</script>
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.