mozilla

Compare Revisions

Browser detection using the user agent

Change Revisions

Revision 508505:

Revision 508505 by wilkinson on

Revision 508605:

Revision 508605 by fbender on

Title:
Browser detection using the user agent
Browser detection using the user agent
Slug:
Browser_detection_using_the_user_agent
Browser_detection_using_the_user_agent
Tags:
"NeedsContent", "Compatibility", "Web Development"
"NeedsContent", "Compatibility", "Web Development"
Content:

Revision 508505
Revision 508605
t378      So, in summary, we recommend looking for the string "Mobi" t378      {{note("So, in summary, we recommend looking for the string
>anywhere in the User Agent to detect a mobile device. If the devi> “Mobi” anywhere in the User Agent to detect a mobile device. If 
>ce is large enough that it's not marked with "Mobi", you should s>the device is large enough that it's not marked with “Mobi”, you 
>erve your desktop site (which, as a best practice, should support>should serve your desktop site (which, as a best practice, should
> touch input anyway, as more desktop machines are appearing with > support touch input anyway, as more desktop machines are appeari
>touchscreens).>ng with touchscreens)")}}.

Back to History