Return to Snippet

Revision: 47698
at June 14, 2011 18:13 by parkarlsson


Initial Code
if (navigator.userAgent.match(/iP(ad|hone|od)/i)) {
 
[Here goes the magic.. ]

}

Initial URL

                                

Initial Description
A tiny snippet on how to easily detect iPad/iPhone/iPod using javascript.

Initial Title
Detecting iPad/iPhone/iPod with javascript

Initial Tags
javascript, iphone

Initial Language
JavaScript