HostUtopia
The MOST Simple iPhone Browser Redirect Script
Rate This Post

iphone javascript redirect scriptThe best iPhone Browser Redirect JavScript we’ve seen.

After evaluating several different ways to do this I found this iPhone browser redirect script to be the simplest one out there. Simply past this into the page header and edit the url for your iPhone enabled page:

<script language=javascript>
<!–
if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
   location.replace(“https://hostutopia.com/mobi/”);
}
–>
</script>

 

HostUtopia Web Hosting

pro reseller cloud hosting

Learn How to Grow Your Website Traffic

Receive our exclusive tips on growing your website traffic. An easy to follow program that shows you every aspect of tweaking your site to maximize traffic from Google, Yahoo and Bing.

You have successfully subscribed! You will soon be receiving your exclusive tips on growing your website traffic.