Hey all,
I am working on an iphone version of one of our sites and want to get a pop up message asking them if they want to be redirected or not
does anyone have any example links i can look at?
i have tried googling but all i can find is auto redirects but i think i would prefer to give them the option as to which version they want to see
Thanks in advance
Page 1 of 1
iPhone redirect pop up I want a pop up asking them if they want to go to my iPhone version
#2
Posted 04 July 2011 - 11:53 AM
instead of pop up try something like this, plenty of advice in google http://www.makeuseof...to-mobile-site/
#3
Posted 04 July 2011 - 12:35 PM
thank you for the link but i would prefer to give the users the option of visiting the mobile version of the site or the full desktop version
#4
Posted 04 July 2011 - 12:40 PM
what? if they are on the phone it redirects them, why would you want to view the other and so on?
#5
Posted 04 July 2011 - 01:00 PM
I want them to be able to view the full site as well as that's what they are used to so i don't want to force people into using the iPhone version of the site if they dont want to
the auto redirects work perfectly but i would prefer to give them the option
thanks
the auto redirects work perfectly but i would prefer to give them the option
thanks
#6
Posted 08 July 2011 - 09:45 AM
easy in javascript:
- get navigator.useragent
- check if it contains iphone or ipad part, something like /iphone/i regexp
- show popup
- window.location = "http://mymobileweb.tld"
- get navigator.useragent
- check if it contains iphone or ipad part, something like /iphone/i regexp
- show popup
- window.location = "http://mymobileweb.tld"
- ← images look different in different browsers
- Web Development Scripts & Software
- Block access to website by country? →
Share this topic:
Page 1 of 1
Help













