--UserAgent 리스트
http://user-agents.org/
--디바이스별 미디어쿼리
http://www.stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
--모바일기기 체크
<script type="text/javascript">
var UserAgent = navigator.userAgent;
if (UserAgent.match(/iPhone|iPod|Android|Windows CE|BlackBerry|Symbian|Windows Phone|webOS|Opera Mini|Opera Mobi|POLARIS|IEMobile|lgtelecom|nokia|SonyEricsson/i) != null || UserAgent.match(/LG|SAMSUNG|Samsung/) != null)
{
location.href = "/mobile/index.html";
}
else
{
alert("Web");
}
</script>
http://blog.naver.com/PostView.nhn?blogId=nowwarfare&logNo=140127178015
[출처] [JavaScript] User Agent 리스트 / 디바이스별 미디어 쿼리 / 모바일 기기 체크 자바스크립트 코드|작성자 제무
'Front-end > Javascript' 카테고리의 다른 글
| JavaScript-Memory leak 해결하기, 메모리 누수 해결하기 (0) | 2013.07.19 |
|---|---|
| JavaScript-jQueryUi-Slider 의 Handler 를 여러 개 생성하기 (0) | 2013.06.21 |
| JavaScript-Array to JSON 변환하기 (0) | 2013.06.05 |
| JavaScript-Drag n Drop 예제 사이트 (1) | 2013.06.05 |
| JavaScript - 이벤트 키 코드 (0) | 2012.10.26 |