Posted By

wanderlusts on 08/06/10


Tagged

textmate iphone ipod iPad


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

argon40
jearley
dubogii


Apple Device Detect


 / Published in: jQuery
 

  1. <script type="text/javascript" charset="utf-8">
  2. if (navigator && navigator.platform && navigator.platform.match(/^(iPad|iPod|iPhone)/)) {
  3. location.replace(".html");
  4. }
  5. </script>

Report this snippet  

You need to login to post a comment.