aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/navigatorid
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/ja/web/api/navigatorid
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/ja/web/api/navigatorid')
-rw-r--r--files/ja/web/api/navigatorid/appcodename/index.html26
-rw-r--r--files/ja/web/api/navigatorid/appname/index.html26
-rw-r--r--files/ja/web/api/navigatorid/appversion/index.html35
-rw-r--r--files/ja/web/api/navigatorid/index.html122
-rw-r--r--files/ja/web/api/navigatorid/platform/index.html65
-rw-r--r--files/ja/web/api/navigatorid/product/index.html38
-rw-r--r--files/ja/web/api/navigatorid/useragent/index.html86
7 files changed, 398 insertions, 0 deletions
diff --git a/files/ja/web/api/navigatorid/appcodename/index.html b/files/ja/web/api/navigatorid/appcodename/index.html
new file mode 100644
index 0000000000..42f0aaccbc
--- /dev/null
+++ b/files/ja/web/api/navigatorid/appcodename/index.html
@@ -0,0 +1,26 @@
+---
+title: window.navigator.appCodeName
+slug: Web/API/NavigatorID/appCodeName
+tags:
+ - DOM
+ - DOM_0
+ - Gecko
+ - Gecko DOM Reference
+translation_of: Web/API/NavigatorID/appCodeName
+---
+<div>
+ {{ApiRef}}</div>
+<h2 id="Summary" name="Summary">概要</h2>
+<p>現在のブラウザの内部 "コード" ネームを返します。</p>
+<h2 id="Syntax" name="Syntax">構文</h2>
+<pre class="syntaxbox"><code>codeName = window.navigator.appCodeName</code></pre>
+<ul>
+ <li><code>codeName</code> : ブラウザの内部名を表す文字列</li>
+</ul>
+<h2 id="Example" name="Example">例</h2>
+<pre class="brush:js">console.log(window.navigator.appCodeName);
+</pre>
+<h2 id="Notes" name="Notes">注記</h2>
+<p>Mozilla、Netscape 6、IE5 は全て、内部名に "Mozilla" を用いています。</p>
+<h2 id="Specification" name="Specification">仕様</h2>
+<p>{{DOM0()}}</p>
diff --git a/files/ja/web/api/navigatorid/appname/index.html b/files/ja/web/api/navigatorid/appname/index.html
new file mode 100644
index 0000000000..eef3b58fe9
--- /dev/null
+++ b/files/ja/web/api/navigatorid/appname/index.html
@@ -0,0 +1,26 @@
+---
+title: window.navigator.appName
+slug: Web/API/NavigatorID/appName
+tags:
+ - DOM
+ - DOM_0
+ - Gecko
+ - Gecko DOM Reference
+ - 要更新
+translation_of: Web/API/NavigatorID/appName
+---
+<div>
+ {{ApiRef}}</div>
+<h2 id="Summary" name="Summary">概要</h2>
+<p>ブラウザの公式な名前を返します。</p>
+<h2 id="Syntax" name="Syntax">構文</h2>
+<pre class="syntaxbox"><code>appName = window.navigator.appName</code></pre>
+<ul>
+ <li><code>appName</code> は、ブラウザの名前を表す文字列です。</li>
+</ul>
+<h2 id="Example" name="Example">例</h2>
+<pre class="brush:js">dump(window.navigator.appName);
+// NS6 のコンソールに "Navigator" を出力します。
+</pre>
+<h2 id="Specification" name="Specification">仕様</h2>
+<p>{{DOM0}}</p>
diff --git a/files/ja/web/api/navigatorid/appversion/index.html b/files/ja/web/api/navigatorid/appversion/index.html
new file mode 100644
index 0000000000..10287d3bc1
--- /dev/null
+++ b/files/ja/web/api/navigatorid/appversion/index.html
@@ -0,0 +1,35 @@
+---
+title: window.navigator.appVersion
+slug: Web/API/NavigatorID/appVersion
+tags:
+ - DOM
+ - DOM_0
+ - Gecko
+ - Gecko DOM Reference
+ - 要更新
+translation_of: Web/API/NavigatorID/appVersion
+---
+<div>
+ {{ApiRef}}</div>
+<h2 id="Summary" name="Summary">概要</h2>
+<p>ブラウザのバージョンを表す文字列を返します。</p>
+<div class="note">
+ <strong>Note:</strong> Do not rely on this property to return the correct browser version. In Gecko-based browsers (like Firefox) and WebKit-based browsers (like Chrome and Safari) the returned value starts with "5.0" followed by platform information. In Opera 10 and newer the returned version does not match the actual browser version, either.</div>
+<h2 id="Syntax" name="Syntax">構文</h2>
+<pre class="syntaxbox">window.navigator.appVersion
+</pre>
+<h3 id="Parameters" name="Parameters">戻り値</h3>
+<ul>
+ <li><code>ver</code> は、ブラウザのバージョン番号を表す文字列です。</li>
+</ul>
+<h2 id="Example" name="Example">例</h2>
+<pre class="brush:js">alert("ご使用中のブラウザのバージョンナンバー(※推定値): " + navigator.appVersion);
+</pre>
+<h2 id="Notes" name="Notes">注記</h2>
+<p>window.navigator.userAgent プロパティもバージョン番号を含んでいる場合があります(※例:"Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010725 Netscape 6/6.1")。しかしユーザエージェントを表す文字列を変更し、他のブラウザ、プラットフォーム、あるいは、ユーザエージェントであるかのように "{{原語併記("偽装", "spoof")}}" することは容易であり、またブラウザベンダ自身のこれらのプロパティ対する扱いも無軌道なものであるということは、覚えておくべきです。 window.navigator.appVersion と window.navigator.userAgent プロパティは、"{{原語併記("ブラウザ判別", "browser sniffing")}}" のコードで非常にしばしば用いられます。例えば、使用中のブラウザの種類を調べ、それに従いページを調整するスクリプトなどです。</p>
+<p>The <code>window.navigator.appVersion</code>, <code>window.navigator.appName</code> and <code>window.navigator.userAgent</code> properties have been used in "browser sniffing" code: scripts that attempt to find out what kind of browser you are using and adjust pages accordingly. This lead to the current situation, where browsers had to return fake values from these properties in order not to be locked out of some websites.</p>
+<h2 id="Specification" name="Specification">仕様</h2>
+<ul>
+ <li><a class="external" href="http://www.w3.org/TR/html5/timers.html#navigator" title="http://www.w3.org/TR/html5/timers.html#navigator">HTML5: System state and capabilities: the Navigator object</a></li>
+</ul>
+<p>元々は DOM Level 0 に含まれてるものでした(※即ち、仕様書に含まれていなかった)。現在では HTML5 仕様書に含まれています。</p>
diff --git a/files/ja/web/api/navigatorid/index.html b/files/ja/web/api/navigatorid/index.html
new file mode 100644
index 0000000000..d311d05b98
--- /dev/null
+++ b/files/ja/web/api/navigatorid/index.html
@@ -0,0 +1,122 @@
+---
+title: NavigatorID
+slug: Web/API/NavigatorID
+tags:
+ - API
+translation_of: Web/API/NavigatorID
+---
+<p>{{APIRef("HTML DOM")}}</p>
+
+<p>The <code><strong>NavigatorID</strong></code> interface contains methods and properties related to the identity of the browser.</p>
+
+<p>There is no object of type <code>NavigatorID</code>, but other interfaces, like {{domxref("Navigator")}} or {{domxref("WorkerNavigator")}}, implement it.</p>
+
+<h2 id="Properties">Properties</h2>
+
+<p><em>The <code>NavigatorID</code></em><em> interface doesn't inherit any property.</em></p>
+
+<dl>
+ <dt>{{domxref("NavigatorID.appCodeName")}} {{readonlyInline}}{{deprecated_inline}}</dt>
+ <dd>Always returns <code>'Mozilla'</code>, on any browser. This property is kept only for compatibility purpose.</dd>
+ <dt>{{domxref("NavigatorID.appName")}} {{readonlyInline}} {{deprecated_inline}}</dt>
+ <dd>Returns the official name of the browser. Do not rely on this property to return the correct value.</dd>
+ <dt>{{domxref("NavigatorID.appVersion")}} {{readonlyInline}} {{deprecated_inline}}</dt>
+ <dd>Returns the version of the browser as a string. Do not rely on this property to return the correct value.</dd>
+ <dt>{{domxref("NavigatorID.platform")}} {{readonlyInline}} {{deprecated_inline}}</dt>
+ <dd>Returns a string representing the platform of the browser. Do not rely on this property to return the correct value.</dd>
+ <dt>{{domxref("NavigatorID.product")}} {{readonlyInline}} {{deprecated_inline}}</dt>
+ <dd>Always returns <code>'Gecko'</code>, on any browser. This property is kept only for compatibility purpose.</dd>
+ <dt>{{domxref("NavigatorID.userAgent")}} {{readonlyInline}}</dt>
+ <dd>Returns the user agent string for the current browser.</dd>
+</dl>
+
+<h2 id="Methods">Methods</h2>
+
+<p><em>The </em><em><code>NavigatorID</code></em><em> interface doesn't inherit any method.</em></p>
+
+<dl>
+ <dt>{{domxref("NavigatorID.taintEnabled()")}} {{deprecated_inline()}}</dt>
+ <dd>Always returns <code>false</code>. JavaScript taint/untaint functions were removed in JavaScript 1.2. This method is only kept for compatibility purpose</dd>
+</dl>
+
+<h2 id="Specifications">Specifications</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">Specification</th>
+ <th scope="col">Status</th>
+ <th scope="col">Comment</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', '#navigatorid', 'NavigatorID')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td>Added the <code>appCodeName</code> property and the <code>taintEnabled()</code> method,  for compatibility purpose.</td>
+ </tr>
+ <tr>
+ <td>{{SpecName('HTML5 W3C', '#navigatorid', 'NavigatorID')}}</td>
+ <td>{{Spec2('HTML5 W3C')}}</td>
+ <td>Initial specification.</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility">Browser compatibility</h2>
+
+<p>{{ CompatibilityTable() }}</p>
+
+<div id="compat-desktop">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<div id="compat-mobile">
+<table class="compat-table">
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Android</th>
+ <th>Chrome for Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Mobile</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ <td>{{CompatVersionUnknown}}</td>
+ </tr>
+ </tbody>
+</table>
+</div>
+
+<h2 id="See_also">See also</h2>
+
+<ul>
+ <li>The {{domxref("Navigator")}} and {{domxref("WorkerNavigator")}} interfaces that implement it.</li>
+</ul>
diff --git a/files/ja/web/api/navigatorid/platform/index.html b/files/ja/web/api/navigatorid/platform/index.html
new file mode 100644
index 0000000000..508dec6cfc
--- /dev/null
+++ b/files/ja/web/api/navigatorid/platform/index.html
@@ -0,0 +1,65 @@
+---
+title: NavigatorID.platform
+slug: Web/API/NavigatorID/platform
+tags:
+ - API
+ - Navigator
+ - NavigatorID
+ - Property
+ - Reference
+ - platform
+translation_of: Web/API/NavigatorID/platform
+---
+<p>{{APIRef("HTML DOM")}}</p>
+
+<p>ブラウザーのプラットフォームを表す文字列を返します。仕様書ではブラウザーが常に空文字列を返すことを許可していますので、信頼できる答えを得るためにこのプロパティを頼らないようにしてください。</p>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox"><em>platform</em> = <em>navigator</em>.platform
+</pre>
+
+<ul>
+ <li><code>platform</code> : 文字列 (例: "Win32" 、 "Linux i686" 、 "MacPPC" 、 "MacIntel" ...等)</li>
+</ul>
+
+<h3 id="Value" name="Value">値</h3>
+
+<p>ブラウザーを実行しているプラットフォームを識別する {{domxref("DOMString")}}、あるいはブラウザーがプラットフォームの識別を断る (または識別できない) 場合は空文字列になります。<code>platform</code> は空文字列か、ブラウザーを実行しているプラットフォームを表す文字列でなければなりません。</p>
+
+<p>例: "<code>MacIntel</code>", "<code>Win32</code>", "<code>FreeBSD i386</code>", "<code>WebTV OS</code>"</p>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush:js">console.log(navigator.platform);</pre>
+
+<h2 id="Notes" name="Notes">注記</h2>
+
+<p>Chrome、Edge、Firefox 63 以降を含むほとんどのブラウザーは、64 ビット版の Windows で実行していても <code>"Win32"</code> を返します。Internet Explorer やバージョン 63 より前の Firefox は <code>"Win64"</code> を返します。</p>
+
+<p>Firefox は設定項目 <code>general.platform.override</code> で、このプロパティが返す値を上書きできます。</p>
+
+<h2 id="Specifications" name="Specifications">仕様</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">策定状況</th>
+ <th scope="col">コメント</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', '#dom-navigator-platform', 'NavigatorID.platform')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td>初期定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザー実装状況</h2>
+
+
+
+<p>{{Compat("api.NavigatorID.platform")}}</p>
diff --git a/files/ja/web/api/navigatorid/product/index.html b/files/ja/web/api/navigatorid/product/index.html
new file mode 100644
index 0000000000..33d2f462c1
--- /dev/null
+++ b/files/ja/web/api/navigatorid/product/index.html
@@ -0,0 +1,38 @@
+---
+title: window.navigator.product
+slug: Web/API/NavigatorID/product
+tags:
+ - DOM
+ - DOM_0
+ - Gecko
+ - Gecko DOM Reference
+translation_of: Web/API/NavigatorID/product
+---
+<div>
+ {{ApiRef}}</div>
+<h2 id="Summary" name="Summary">概要</h2>
+<p>このプロパティは、現在のブラウザの製品名を返します。</p>
+<h2 id="Syntax" name="Syntax">構文</h2>
+<pre class="syntaxbox"><i>productName</i> = window.navigator.product
+</pre>
+<ul>
+ <li><code>productName</code> : 製品名を表す文字列</li>
+</ul>
+<h2 id="Example" name="Example">例</h2>
+<pre class="brush:html">&lt;script&gt;
+function prod() {
+ dt = document.getElementById("d");
+ dt.innerHTML = window.navigator.product;
+}
+&lt;/script&gt;
+
+&lt;button onclick="prod();"&gt;product&lt;/button&gt;
+&lt;div id="d"&gt; &lt;/div&gt;
+
+&lt;!-- "Gecko" などの文字列が表示される --&gt;
+</pre>
+<h2 id="Notes" name="Notes">注記</h2>
+<p>製品名は、ユーザエージェント全体の文字列の一部(プラットフォームの直後)です。例えば、Netscape 6.1 を表すユーザエージェントでは、製品名は、"Gecko" であり、ユーザエージェント文字列全体は、次の通りです。</p>
+<pre>Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010725 Netscape6/6.1</pre>
+<h2 id="Specification" name="Specification">仕様</h2>
+<p>{{DOM0}}</p>
diff --git a/files/ja/web/api/navigatorid/useragent/index.html b/files/ja/web/api/navigatorid/useragent/index.html
new file mode 100644
index 0000000000..753c7729dc
--- /dev/null
+++ b/files/ja/web/api/navigatorid/useragent/index.html
@@ -0,0 +1,86 @@
+---
+title: NavigatorID.userAgent
+slug: Web/API/NavigatorID/userAgent
+tags:
+ - API
+ - Deprecated
+ - NavigatorID
+ - Property
+ - Read-only
+ - Reference
+translation_of: Web/API/NavigatorID/userAgent
+---
+<p>{{ApiRef("HTML DOM")}}</p>
+
+<p><code><strong>NavigatorID.userAgent</strong></code> は読み取り専用のプロパティで、現在のブラウザーのユーザーエージェント文字列を返します。</p>
+
+<div class="note">
+<p>仕様書では、ブラウザーがこのフィールドを介して提供する情報をできるだけ少なくすることを求めています。このプロパティの値は、同じブラウザーの将来のバージョンでも同じままであると仮定してはいけません。まったく使用しないようにしたり、ブラウザーの現在のバージョンと過去のバージョンのためだけに使用するようにしてください。新しいブラウザーは、古いブラウザーと同じ UA、またはその一部を使い始めるかもしれません。ブラウザーエージェントが本当にこのプロパティによって広告されたものであるという保証は本当にありません。<br>
+<br>
+また、ブラウザのユーザーはこのフィールドの値を変更することができることを覚えておいてください (UA なりすまし)。</p>
+</div>
+
+<p>ユーザーエージェント文字列の検出に基づくブラウザーの識別は<strong>信頼性が低く</strong>、ユーザーエージェント文字列はユーザーが設定可能なので<strong>推奨されません</strong>。例えば、以下のようになります。</p>
+
+<ul>
+ <li>Mozilla Suite と Firefox では、 about:config の "general.useragent.override" 設定を使うことができます。いくつかの Firefox の拡張や多機能バーでも設定可能です。</li>
+ <li>Opera 6 以降では、メニューからブラウザー識別文字列を設定できます。</li>
+ <li>Microsoft Internet Explorer では、 Windows レジストリを利用できます。</li>
+ <li>Safari と iCab は、メニューから、ブラウザユーザエージェントを定義済みの Internet Explorer、または、 Netscape の文字列に変更できます。</li>
+</ul>
+
+<h2 id="Syntax" name="Syntax">構文</h2>
+
+<pre class="syntaxbox notranslate">var <var>ua</var> = navigator.userAgent;
+</pre>
+
+<h3 id="Value" name="Value">値</h3>
+
+<p>{{domxref("DOMString")}} で、ブラウザーが {{Glossary("HTTP")}} ヘッダーで提供する完全なユーザーエージェント文字列と、 {{domxref("Navigator")}} オブジェクト上のメソッドやその他の関連メソッドへのレスポンスを指定します。</p>
+
+<p>ユーザーエージェント文字列は形式的な構造に基づいて構築されており、いくつかの情報に分解することができます。これらの情報の各部分は、ユーザ-が設定可能な他の Navigator のプロパティから来ています。Gecko ベースのブラウザは以下の一般的な構造に準拠しています。</p>
+
+<pre class="notranslate">userAgent = appCodeName/appVersion number (Platform; Security; OS-or-CPU;
+Localization; rv: revision-version-number) product/productSub
+Application-Name Application-Name-version
+</pre>
+
+<h2 id="Example" name="Example">例</h2>
+
+<pre class="brush:js notranslate">alert(window.navigator.userAgent)
+// alerts "Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010725 Netscape6/6.1"
+</pre>
+
+<ul>
+</ul>
+
+<h2 id="Specifications" name="Specifications">仕様書</h2>
+
+<table class="standard-table">
+ <thead>
+ <tr>
+ <th scope="col">仕様書</th>
+ <th scope="col">状態</th>
+ <th scope="col">備考</th>
+ </tr>
+ </thead>
+ <tbody>
+ <tr>
+ <td>{{SpecName('HTML WHATWG', '#dom-navigator-useragent', 'NavigatorID.userAgent')}}</td>
+ <td>{{Spec2('HTML WHATWG')}}</td>
+ <td>初回定義</td>
+ </tr>
+ </tbody>
+</table>
+
+<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの互換性</h2>
+
+<div class="hidden">このページの互換性一覧表は構造化データから生成されています。データに協力していただけるのであれば、 <a class="external" href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> をチェックアウトしてプルリクエストを送信してください。</div>
+
+<p>{{Compat("api.NavigatorID.userAgent")}}</p>
+
+<h2 id="See_also" name="See_also">関連情報</h2>
+
+<ul>
+ <li>{{httpheader("User-Agent")}} HTTP ヘッダー</li>
+</ul>