How to determine if a visitor is using a phone or computer
Hi everyone,
Is it possible to determine at the startup of the page if the visitor is using a computer or a phone to access the site?
I would like to make the intro process much better than a simple "click here for HTML version or click here for Flash version". I would like for it to simply redirect to the page I set it to go to depending on whether or not they're using a regular browser or a mobile browser.
You could make a stylesheet for 'handheld' or for 'screen' but that would probably not work for sites made totally in flash. they aren't a good idea anyway so, this may be a solution for you.
bazz
__________________
"The day you stop learning is the day you become obsolete"! - my late Dad.
also, you could simply eliminate possibilies and assume a phone at the end.
assume the answer is no to all of these:
are you IE ? are you FireFox? are you Opera? are you Safari? (if yes, is your screen.width > 700)? you must be a phone!
__________________ my site (updated 5/13) STATS (2013/5) HTML5:90.2% MOB:14% IE7:0.5% IE8:8.8% IE9:11.4% IE10:6.5%