Hey friends, Something interesting and quick to check if client browser is any of the mobile device. Try the below javascript:

if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
// some code..


Best way to detect mobile device in Javascript
Tagged on:     

Leave a Reply

Your email address will not be published. Required fields are marked *