Click here to Skip to main content
15,885,435 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
dear sir/mam,
how to check that any url is mobile web site or simple(regular) web site via java script or give me any logic?

thanks
Posted
Comments
Thanks7872 1-May-13 6:16am    
As per as WEBSITE is concerned,there is nothing called DIFFERENCE between this two.mobile website is just another way to represent website.Go through this reference link.mobile website is designed for smaller devices espacially.

1 solution

You can't, at least not for all sites, there is no consistent standard for doing this, even if there were it is unlikely all sites would adhere to it. Our UK site uses http://hostname/mobile, but the foreign versions use the same URLs for the same functionality.


Your best bet is to work through common scenarios and develop a flexible infrastructure that allows you to add new ones as they arise. If you have control of the sites you are going to track, you could add metadata specifying it is a mobile site and get that from jQuery[^] or JavaScript
 
Share this answer
 
Comments
anshu77 6-May-13 6:57am    
thanks

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