Best way to detect Mac OS X or Windows computers with javascript or jQuery
<p>So I'm trying to move a "close" button to the left side when the suer is on mac and the right side on PC. Not I'm doing it with user agents, but they can be too easily spoofed for it to be real O.S. detection. Is there a surefire way to detect Mac OS X or Windows? If not, what's better then user agent sniffing?</p>

<p>Thanks!</p>
