Click here to Skip to main content
15,668,646 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am making two websites one is desktop and other mobile so how to redirect mobile website . please help me with example
Updated 5-Jul-12 13:49pm

1 solution

hi ,

It is very difficult to identify all mobile device,but you can use link^ to detect some of smart phone.

you need to check all mobile device(you wont to target) and check it's user agent and add more if condition in given sample code.

you can also use CSS3 media query.

but it is more better if you do this on server side as it is more robust ans sever requests also contain client user agent value
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900