ユーザーエージェントがiPhoneか判別
var userAg = navigator.userAgent.toLowerCase(); var checkiPhone = userAg.indexOf("iPhone") > -1; if(checkiPhone){ //処理 }