iPhone Browser Redirect Script

by / Monday, 09 April 2012 / Published in Tips & Tricks

The 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))) {