navigator.appCodeName

アプリケーションのコード名を返します。実際には正しいコード名が返されず、過去の互換性のためMozillaの文字列を返すブラウザが多くあります。

構文

navigator.appCodeName

例文

<html>
 <head>
  <title>navigator.appCodeName</title>
  <script type="text/javascript"><!--
  window.onload = function() {
   var txt = navigator.appCodeName;
   document.getElementById("result").innerHTML = txt;
  }
  // --></script>
 </head>
 <body>
 <div id="result"></div>
 </body>
</html>

関連記事

スポンサーリンク

実行中のメソッド名やクラス名を取得する方法

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る