I am currently developing a client side application which will be designed for both, smartphones and tablets. Therefore it will get two different layout modes.
While th
One way to do it is to check the user agent.
var UA = navigator.userAgent; if (UA.indexOf("iPad") != -1) { // iPad } else if (UA.indexOf("iPhone") != -1) { // iPhone }