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?
Asked
Active
Viewed 117 times
1
-
have you checked about @media tags in css – Gnanz Jun 05 '13 at 10:52
-
maybe this will help out http://stackoverflow.com/questions/5335237/how-to-check-if-the-request-came-from-mobile-or-computer-in-php – Modestas Stankevičius Jun 05 '13 at 10:53
2 Answers
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?
![](../../users/profiles/-1.webp)
Community
- 1
- 1
![](../../users/profiles/1388989.webp)
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