Script to detect iPad visitors

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)
    );
}
Share this nice post:

Leave a Reply

Your email address will not be published. Required fields are marked *