Your Ad Here

Posted By

anvilcity on 08/27/10


Tagged

iphone


Versions (?)

JavaScript method for detecting iPhones


 / Published in: JavaScript
 

  1. if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))){
  2. window.location = "http://somewebsite.com/iphone";
  3. }

Report this snippet  

You need to login to post a comment.