Mobile Redirect Javascript Code, anybody knows ?

Discussion in 'Programming' started by A.G, Nov 19, 2012.

  1. #1
    Hello,

    i searched a lot for a javascript code that detect that visitor is coming from Mobile Device and redirect his to another url
    anybody know how to do this ??
     
    A.G, Nov 19, 2012 IP
  2. SedNaX

    SedNaX Active Member

    Messages:
    1,326
    Likes Received:
    59
    Best Answers:
    0
    Trophy Points:
    90
    #2
    SedNaX, Nov 21, 2012 IP
  3. ilook

    ilook Well-Known Member

    Messages:
    1,602
    Likes Received:
    15
    Best Answers:
    1
    Trophy Points:
    165
    #3
    I would rather do this server side (PHP / ASP.NET) than with Javascript.
     
    ilook, Nov 21, 2012 IP
  4. Rukbat

    Rukbat Well-Known Member

    Messages:
    2,908
    Likes Received:
    37
    Best Answers:
    51
    Trophy Points:
    125
    #4
    Detect the browser window size, then send an appropriate page. A 10" netbook and a 10" tablet should get the same page. Detecting only mobile browsers will send a 10" netbook a page designed for a much larger display.
     
    Rukbat, Nov 22, 2012 IP