【JS】ユーザ情報取得

■ はじめに

https://blogs.yahoo.co.jp/dk521123/23844430.html
で、C#によるユーザ情報取得を行った。
今回、JavaScriptで調べてみた。

■ サンプル

<script>
document.write("location.host : " + location.host + "</br>");
document.write("location.hostname : " + location.hostname + "</br>");
document.write("location.port : " + location.port + "</br>");
document.write("location.pathname : " + location.pathname + "</br>");
document.write("navigator.appCodeName : " + navigator.appCodeName + "</br>");
document.write("navigator.appName : " + navigator.appName + "</br>");
document.write("navigator.appVersion : " + navigator.appVersion + "</br>");
document.write("navigator.language : " + navigator.language + "</br>");
document.write("navigator.platform : " + navigator.platform + "</br>");
document.write("navigator.userAgent : " + navigator.userAgent + "</br>");
document.write("document.referrer : " + document.referrer + "</br>");
document.write("document.domain : " + document.domain + "</br>");
document.write("screen.width : " + screen.width + "</br>");
document.write("screen.height : " + screen.height + "</br>");
document.write("screen.colorDepth : " + screen.colorDepth);
</script>


関連記事

C#】ユーザ情報取得 ~ コンピュータ名 etc ~

https://blogs.yahoo.co.jp/dk521123/23844430.html