Jump to content

Redirect Script To iPad From Your Site


daniel27lt
 Share

Recommended Posts

Just want to let anyone know who does not know already the script to redirect your website to the iPad for your users who use a iPad. this is not the code to redirect to your mobile site, but to your iPad site (if you have one). <script language=javascript><!--if ((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) { location.replace("http://url-to-send-them/iphone.html");}--></script> The highlighted red is where you place the url where your ipad site is. I hoped this has helped for anyone needing help with this subject.

Edited by daniel27lt
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...