Effective methods of detecting mobile

MOBILE DEVICES-EFFECTIVE METHODS OF DETECTING

JAVASCRIPT Developers can utilize the userAgent located in the HTTP headers to see if the user is on a mobile device. A regular expression can be applied to the value of userAgent to see if it contains any keywords, and then the device type can be determined (mobile device, tablet, or desktop). navigator.userAgernt Solution:  Scroller