jQuery device detection

[javascript]
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) {
// Do something
} else {
// Do something else
}
[/javascript]

Leave a Reply