본문 바로가기

공부방/JavaScript

userAgent 확인

<script>
  function chkUsrAgent() {
    prompt('Copy to clipboard: Ctrl+C, Enter'window.navigator.userAgent);
  }
</script>
<button type="button" onclick="chkUsrAgent()">what's my user agent</button>
cs


출처 : http://noritersand.tistory.com/333