Posted By

dottDesign on 05/31/10


Tagged

javascript redirect textmate mobile


Versions (?)

Mobile Redirect Javascript


 / Published in: Other
 

  1. <script>
  2. if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/BlackBerry/i)))
  3. {
  4. location.href='http://liveatsfu.agentsite.mobi';
  5. }
  6. else {
  7. //location.href='http://www.liveatsimonfraser.ca';
  8. }
  9. </script>

Report this snippet  

You need to login to post a comment.