사용자함수 웹페이지 접근 단말기 (모바일인지) 체크하기
페이지 정보

본문
//모바일접근 체크..
var Mobile = false;var AgentStr = navigator.userAgent.toLowerCase();
var MobileArr = ['iphone','ipod','android','blackberry','windows ce','nokia','webos','opera mini','sonyericsson','opera mobi','iemobile'];
for (var model in MobileArr){
if (AgentStr.indexOf(MobileArr[model]) != -1){
Mobile = true;
break;
}
}
- 이전글OrientationChange; - 모바일 회전변경 이벤트 15.05.15
- 다음글[기초] 1.자바스크립트의 개념 15.05.15
댓글목록
등록된 댓글이 없습니다.

