0
How to detect the user is accessing the site from mobile or from PC?
Hi guys, When developing a website we have take into consideration the different sizes of the screen. Now for mobile I have a created a sub domain with m.SITENAME.com. Now how to detect the user is using a mobile and redirect the user from the usual page to this page?
1 Antwort
+ 2
you can try using `navigator.userAgent` in Javascript to detect the navigator / device the user uses.