how to redirect url for mobile device.

Discussion in 'Programming' started by pareshprince, Aug 12, 2011.

  1. #1
    Hi friends

    i want to need one help. i have my website for desktop. but i want to create another website design for mobile devices. if some one type my website url from mobile devices then user shows my mobile website not my original desktop website. can you please provide me code or suggest me.

    thanks in advance.
     
    pareshprince, Aug 12, 2011 IP
  2. ZeroGamma

    ZeroGamma Peon

    Messages:
    35
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ZeroGamma, Aug 12, 2011 IP
  3. Kenank

    Kenank Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    <script type="text/javascript">
    <!--
    if (screen.width <= 699) {
    document.location = "mobile.html";
    }
    //-->
    </script>
     
    Kenank, Aug 18, 2011 IP