Categories :

The best way to detect a mobile device

<script src=””></script>
var isMobile = false;
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
// some code write for mobile device…
isMobile = true;
isMobile = false;
<center><h1 id=”device”></h1></center>
jQuery(“#device”).text(“This is mobile device…”);
jQuery(“#device”).text(“This is not mobile device…”);


This is…

Leave a Reply

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