[thelist] iPhone (browser) detection

Mark Groen evolt at markgroen.com
Sun Sep 28 09:06:16 CDT 2008

On Sunday 28 September 2008 00:19:36 Erika wrote:
> Say I want to build an optimized site for iPhone. I figure there are
> three ways to do that:
> 1. don't bother w/ detecting iPhone and just KISS


> 2. detect iPhone with CSS and hook it up with an iPhone-optimized
> stylesheet

Apple recommends using Object Detection:

> 3. detect iPhone with JavaScript (or whatever script) and send it to an
> optimized HTML page

Use the viewport meta tag, there is some built in scaling of web pages on the 
iPhone too:


More information about the thelist mailing list