1

I am returing to website development and I want my work to be as global as possible. When a web surfer arrives at my site, is there a way to determine whether he/she is surfing with a PC or mobile phone and disply the content accordingly? Or would it be better to build responsive sites using CSS?

Dan Puzey
  • 32,863
  • 3
  • 74
  • 96
JumpMaster
  • 21
  • 1

2 Answers2

3

Take a look at the following questions, looks like there could be quite a lot of useful information in there for you:

What is the best way to detect a mobile device in jQuery?

How to detect a mobile device with JavaScript?

Auto detect mobile browser (via user-agent?)

Community
  • 1
  • 1
Gaz Winter
  • 2,839
  • 2
  • 24
  • 46
0

You can use Request.UserAgent because UserAgent gets the raw user agent string of the client browser

BenMorel
  • 31,815
  • 47
  • 169
  • 296
Pawan
  • 1,025
  • 5
  • 10