Posted By

michelfraga on 04/15/10


Tagged

javascript redirect textmate iphone dectect


Versions (?)

iphone detect


 / Published in: JavaScript
 

  1. <script language=javascript>
  2. <!--
  3. if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
  4. location.replace("http://url-to-send-them/iphone.html");
  5. }
  6. -->
  7. </script>

Report this snippet  

You need to login to post a comment.