<script type="text/javascript">
var mobileKeyWords = new Array('iPhone', 'iPod', 'BlackBerry', 'Android', 'Windows CE', 'LG', 'MOT', 'SAMSUNG', 'SonyEricsson');
for (var word in mobileKeyWords){
if (navigator.userAgent.match(mobileKeyWords[word]) != null){
location.href = "http://m.xxx.com";
break;
}
}
</script>
'웹프로그래밍' 카테고리의 다른 글
따라다니는 사이드바, 퀵바, 퀵메뉴, 사이드메뉴 자바스크립트 (0) | 2011.10.05 |
---|---|
img 태그 로딩 에러시 대체 이미지 onERROR 이용 (0) | 2011.10.05 |
form 입력시 update, insert 등 action 페이지 변환 가능 자바스크립트 (0) | 2011.10.05 |
document.body.scrollTop 익스플로러 버전에 상관 없이 사용하기. (0) | 2011.10.05 |
한글 입력 체크 스크립트 함수 (0) | 2011.10.05 |