Return to Snippet

Revision: 33347
at October 8, 2010 03:28 by thiswayup


Initial Code
function appleMobileChk(){
        if (/iPhone/.test(navigator.userAgent) ||  /iPad/.test(navigator.userAgent) || /iPod/.test(navigator.userAgent)){
            return true;
        }
        else{
            return false;
        }
    }

Initial URL

                                

Initial Description
Was using this to disable certain js functionality as it wasnt working on apple\'s webkit

Initial Title
detect iphone, ipad or ipod via js

Initial Tags
javascript, browser

Initial Language
JavaScript