Answers for "javascript check if i am on iphone"

2

javascript detect ios device

function isIOSDevice(){
   return !!navigator.platform && /iPad|iPhone|iPod/.test(navigator.platform);
}
if(isIOSDevice()){
    console.log("I am an IOS device!");
}
Posted by: Guest on August-05-2019

Code answers related to "Javascript"

Browse Popular Code Answers by Language