Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2010
    Posts
    21
    Thanks
    10
    Thanked 0 Times in 0 Posts

    Javascript to detect mobile and touchpad devices

    Just a quick question everyone,

    Is it possible construct code in javascript that detects users coming to your site using handheld mobile devices and touch pad devices, or do you have to use a server side script such as php?

    Comments would be welcome.

    Thanks,

    Nonye

  • #2
    Supreme Master coder! Philip M's Avatar
    Join Date
    Jun 2002
    Location
    London, England
    Posts
    18,079
    Thanks
    203
    Thanked 2,542 Times in 2,520 Posts
    Quote Originally Posted by nonye View Post
    Just a quick question everyone,

    Is it possible construct code in javascript that detects users coming to your site using handheld mobile devices and touch pad devices, or do you have to use a server side script such as php?

    Comments would be welcome.

    Thanks,

    Nonye
    http://webdesign.about.com/od/mobile...le-devices.htm

    http://www.abeautifulsite.net/blog/2...th-javascript/

    http://detectmobilebrowsers.com/

    http://www.htmlgoodies.com/beyond/we...User-Agent.htm

    All advice is supplied packaged by intellectual weight, and not by volume. Contents may settle slightly in transit.
    Last edited by Philip M; 05-30-2012 at 02:58 PM.

    All the code given in this post has been tested and is intended to address the question asked.
    Unless stated otherwise it is not just a demonstration.

  • The Following 2 Users Say Thank You to Philip M For This Useful Post:

    mrhoo (05-30-2012), nonye (05-30-2012)

  • #3
    New Coder
    Join Date
    Feb 2010
    Posts
    21
    Thanks
    10
    Thanked 0 Times in 0 Posts
    Thanks for posting the links Philip. Very informative

    Nonye


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •