How would you modify this script. It works for to redirect visitors from iphone, android but not ipad <script language=javascript><!--if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/blackberry/gi)) || (navigator.userAgent.match(/android/gi))){ location.replace("http://url to mobile site/");}--></script>
modify this script for mobile redirect
11
How would you modify this script. It works for to redirect visitors from iphone, android but not ipad
<script language=javascript><!--if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/blackberry/gi)) || (navigator.userAgent.match(/android/gi))){ location.replace("http://url to mobile site/");}--></script>
<script language=javascript><!--if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || (navigator.userAgent.match(/blackberry/gi)) || (navigator.userAgent.match(/android/gi))){ location.replace("http://url to mobile site/");}--></script>
- rodvdka
- [1] reply
- ronr
- [1] reply
- jminkler
- [1] reply
- ronr
- [1] reply
- Valdor Kiebach
- [ 1 ] Thanks
- Delta90
- joshuaeric
Next Topics on Trending Feed
-
11