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
  • 31,916
  • 3
  • 71
  • 95
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,781
  • 2
  • 22
  • 45
0

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

BenMorel
  • 30,280
  • 40
  • 163
  • 285
Pawan
  • 1,007
  • 5
  • 10