Redirecting Your Site to an IPad - Free Script

Discussion in 'HTML & Website Design' started by daniel27lt, Apr 1, 2012.

  1. #1
    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.
     
    daniel27lt, Apr 1, 2012 IP