July 4, 201115 yr 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
July 4, 201115 yr instead of pop up try something like this, plenty of advice in google http://www.makeuseof.com/dir/detectmobilebrowser-auto-redirect-to-mobile-site/
July 4, 201115 yr Author 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
July 4, 201115 yr what? if they are on the phone it redirects them, why would you want to view the other and so on?
July 4, 201115 yr Author 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
July 8, 201115 yr 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"
Create an account or sign in to comment