javascript - New method for getting device type for mobile webpages -
i've been researching way devicetype trigger mobile websites , many people still use script gets screen width/height in pixels determine if mobile devices used or not.
but mobile phones/tablets have extremely high resolution screens need way trigger switch between normal websites , mobile websites. screen sizes around 1,280 x 768 - 1920x1080 mobile phones , 1920x1080 2560x1600 tablets.
what correct error-proof method determine mobile or not? i'd not use javascript on php, if there's easier method javascript please tell!
you can make mobile website responsive trough media queries in css overwrite normal css website. media queries check resolutions , put in media query shown in resolution http://webdesignerwall.com/tutorials/css3-media-queries
with javascript can check browser code found on page: http://www.abeautifulsite.net/blog/2011/11/detecting-mobile-devices-with-javascript/
with code can redirect website specially designed mobile website
Comments
Post a Comment