April 8, 201016 yr Hi Guys I have nearly finished my mobile version of my website but just need a code in HTML that identifies the browser like safari for iphone and redirects them to my mobile site because its an iphone thanks jake
April 11, 201016 yr you could use this: if (navigator.userAgent.toLowerCase().indexOf('iphone')!=-1) { document.location.href="/iphone.htm"; }
Create an account or sign in to comment