Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Detect Mac OS?

Posted on 1998-03-26
1
Medium Priority
?
232 Views
Last Modified: 2006-11-17
Quick one here: how do I detect Mac OS, so I can redirect mac lovers?
0
Comment
Question by:idrop
1 Comment
 
LVL 10

Accepted Solution

by:
kollegov earned 50 total points
ID: 1278867
<script>
if(navigator.userAgent.indexOf("Mac")!=-1)
  {document.location="formacusers.html"
  }
</script>
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I've been trying to accomplish this for a while and it just struck me yesterday how to accomplish this task. I have done searches all over the internet looking for ways to email pages from my applications and finally I have done it!!! Every single s…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

916 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question