Skip to content

Instantly share code, notes, and snippets.

@jCrip
Created March 15, 2012 14:21
Show Gist options
  • Save jCrip/2044426 to your computer and use it in GitHub Desktop.
Save jCrip/2044426 to your computer and use it in GitHub Desktop.
Redirect Mobile Devices
<script>
<!--
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
location.replace("http://xxx");
}
-->
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment