jqueryexample.com Script to detect iPad visitors - jqueryexample.com

Script to detect iPad visitors by jqueryuser

The following should help you out with detecting an iPad user:

if (navigator.userAgent.match(/iPad/i)) {
    //Detect iPod
}
or
function dtciPhone(){
    return (
        //Detect iPhone
        (navigator.platform.indexOf("iPhone") != -1) ||
        //Detect iPod
        (navigator.platform.indexOf("iPod") != -1)
    );
}
Did you like this? Share it:

Discussion

No comments yet, be the first.

Leave a Comment