Detect iPhones and iPods using Javascript
When developing for the iPhone and the iPod Touch, the first thing we have to do is obviously detect it, so we can apply specific code or styles to it. The following code snippets will detect iPhones and iPods using Javascript, and redirect those users to an iPhone specific page.
Detect iPhones and iPods using PHP
Although the previous snippet works great, Javascript can be disabled on the iPhone. For this reason, you may prefer to use...