diff options
| author | MDN <actions@users.noreply.github.com> | 2021-07-09 00:38:08 +0000 |
|---|---|---|
| committer | MDN <actions@users.noreply.github.com> | 2021-07-09 00:38:08 +0000 |
| commit | 235c34993c7b14f783fc8259cc237ac09f0d3e57 (patch) | |
| tree | 7bee1bfcdc5216423bb76a12842eb60c169b0b04 /files/ja/orphaned/web/api/navigatorid/platform | |
| parent | 635bcdc09c53e3c497a3ff8eb958ca8eb541c7fd (diff) | |
| download | translated-content-235c34993c7b14f783fc8259cc237ac09f0d3e57.tar.gz translated-content-235c34993c7b14f783fc8259cc237ac09f0d3e57.tar.bz2 translated-content-235c34993c7b14f783fc8259cc237ac09f0d3e57.zip | |
[CRON] sync translated content
Diffstat (limited to 'files/ja/orphaned/web/api/navigatorid/platform')
| -rw-r--r-- | files/ja/orphaned/web/api/navigatorid/platform/index.html | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/files/ja/orphaned/web/api/navigatorid/platform/index.html b/files/ja/orphaned/web/api/navigatorid/platform/index.html new file mode 100644 index 0000000000..a369a1f12e --- /dev/null +++ b/files/ja/orphaned/web/api/navigatorid/platform/index.html @@ -0,0 +1,66 @@ +--- +title: NavigatorID.platform +slug: orphaned/Web/API/NavigatorID/platform +tags: + - API + - Navigator + - NavigatorID + - Property + - Reference + - platform +translation_of: Web/API/NavigatorID/platform +original_slug: 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> |
