Web developer, Norwich - Clive Portman

Detecting iPods, iPads and iPhones using Javascript

Published under Javascript, Mobile

Published on Monday 13th December 2010
if((navigator.userAgent.match(/iPhone/i)) || (navigator.userAgent.match(/iPod/i))) {
    $(“p#iphone”).css({‘display: block’});
}