Steven
Steven

Reputation: 18869

Detecting NON mobile browsers

So I'd like to redirect mobile users to a different page. But instead of trying to detect any number of mobile browsers, I'd just like to see if the user is using IE, Firefox, Safari, Chrome, or Opera; all other users go to the mobile site.

My biggest problem is detecting regular Safari from mobile Safari.

Any good way to do this?

Upvotes: 2

Views: 292

Answers (1)

LoganWolfer
LoganWolfer

Reputation: 115

If you'd ask me, if you stay away from Flash/Silverlight applets, and you don't overdo CSS 3 selectors (although as time passes by, this will become less of a problem...), you really don't need to use browser-specific directions.

Using a reset CSS style-sheet would help also. Go see that link for that matters :

http://meyerweb.com/eric/tools/css/reset/

Upvotes: 1

Related Questions