| | #1 |
| Web Marketing For Profit War Room Member Join Date: 2002 Location: Brisbane
Posts: 2,894
Thanks: 8
Thanked 1,160 Times in 528 Posts
Blog Entries: 10 |
Hi I am using a redirect script from my main site to my mobile site which is working ok however I would also like to add a script in my mobile site in case anyone finds it on their desktop. Just using basic html This is what I am using to go to the mobile site: <script language=javascript> <!-- if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i)) || ((navigator.userAgent.match(/iPad/i))) { location.replace("mobile.html"); } --> </script> Thanks in advance Quentin |
| DIY Product Creation Online Business Training on How To Create Products to sell online Plus Lots More. | |
| |
| | #2 |
| HyperActive Warrior War Room Member Join Date: 2005 Location: , , USA.
Posts: 410
Thanks: 0
Thanked 101 Times in 54 Posts
Blog Entries: 5 |
Check out: The MobileESP Project: Easily detect mobile web site visitors I don't know of a way to detect if it's a p.c. - and don't have time to dig it up. If you can't find a detection class you could just eliminate the popular phone Operating systems and redirect to the p.c. page if it's none of the above. Look at the last example on that page I provided - it should make sense. |
| |
|
| Bookmarks |
| Tags |
| desktop, mobile, redirect |
| |