Posted By

parkarlsson on 06/14/11


Tagged

javascript iphone ipod iPad


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

yoitsben


Detecting iPad/iPhone/iPod with javascript


 / Published in: JavaScript
 

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

  1. if (navigator.userAgent.match(/iP(ad|hone|od)/i)) {
  2.  
  3. [Here goes the magic.. ]
  4.  
  5. }

Report this snippet  

You need to login to post a comment.