Ah, apologies. I didn't pay close attention and missed the document.referrer line. Thanks!
On Nov 21, 7:50 pm, Lance Dyas <[EMAIL PROTECTED]> wrote: > birdofprey wrote: > > Currently, the full version of my site detects an iPhone/iPod Touch > > device, and performs a redirect to the iPhone version of the site. It > > does this by using Javascript. Is there a way to link from the iPhone > > version of the page, back to the full page (and somehow disable the > > Javascript through the link so that it doesn't redirect straight back?) > > emulate something like the following. > > <script type="text/javascript"> > if(document.referrer != "http://www.microimages.com/index_m.htm"){ > if((navigator.userAgent.match(/iPhone/i)) || > (navigator.userAgent.match(/iPod/i))) > {location.replace("index_m.htm");} > if((navigator.appVersion.indexOf("Windows CE")>0)) > {location.replace("index_m.htm");}} > > </script> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
