BrowserHawk IQ now available! Click here for the full scoop!
Search:
How do I detect a mobile device?
Created: 10/10/2008    Updated: 10/10/2008
Q   What BrowserHawk properties should I check to determine whether a browser is a mobile device or not?

A   Here is a recipe for detecting mobile devices (pseudo code):

if PDA = True OR WAP = True OR (Browser = "Safari" AND (OSDetails = "iPhone" OR OSDetails = "iPod touch") then
    mobile device
else
    not a mobile device
end if

    FAQ Home  |  Search FAQ  |  Show New Items  |  Ask a FAQ  |  Notify Me  |  Most Popular     
 
 
Copyright © 1994-2020 cyScape, Inc. All Rights Reserved. ()
ASP, ASP.NET, ColdFusion MX, CFMX, JSP, PHP