www.webdeveloper.com
Results 1 to 3 of 3

Thread: Detect mobile and redirect

Hybrid View

  1. #1
    Join Date
    May 2005
    Posts
    26

    Detect mobile and redirect

    I need some help finding a script (php?) to detect visitors who are connecting to my site on mobile phones or other small screen devices, and then redirects them to a subdomain optimized for small screens. Can someone point me to a "simple" script to do that? I was not able to find a thread on this forum that explains to a non-php/js programmer how to do this.

  2. #2
    Join Date
    May 2009
    Posts
    23

  3. #3
    Join Date
    Mar 2012
    Posts
    935
    In javascript, the properties:
    screen.height
    screen.width
    give you the respective dimensions.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

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



Recent Articles