Q
|
I would like to know if a browser hitting my site is running on a mobile device. What is the best way to detect this?
|
A
|
Use logic like this (pseudo-code):
if bh.WAP = True OR bh.PDA = True OR (Browser = Safari AND (bh.OSDetails = "iPhone" OR bh.OSDetails = "iTouch")) then
... this is a mobile device ...
else
... this is not a mobile device ...
end if
|