Introduction:
Here i will explain how to detect mobile device using JavaScript
This is simplest way to detect mobile device.
Code:
Here i will explain how to detect mobile device using JavaScript
This is simplest way to detect mobile device.
Code:
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) { // some code.. }
No comments :
Post a Comment