Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript ***HOW TO DETECT MOBILE DEVICES USING JQUERY*** Re: ***HOW TO DETECT MOBILE DEVICES USING JQUERY***

#132044
Robin
Participant

Hi,

You can use this one also.

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