[Web API] 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>