iPhone redirect

Here’s a javascript snippet to get your site to redirect visitors using the iPhone browser:

var agent=navigator.userAgent.toLowerCase();
var is_iphone = (agent.indexOf(‘iphone’)!=-1);
if(is_iphone) { window.location =”http://jaymatter.mobi” }

Leave a Reply

DSC_4292DSC_2684DSC_4510DSC_0031DSC_3663DSC_3708DSC_3631DSC_3459DSC_3653DSC_3635DSC_7829DSC_2638