var ua = navigator.userAgent;
https://developer.mozilla.org/en-US/docs/Web/API/Navigator/userAgent
https://webzz.tistory.com/82