aboutsummaryrefslogtreecommitdiff
path: root/files/ja/web/api/navigator/productsub/index.html
blob: d81779bab6726b9f2c8856afe5e388536f8888a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
---
title: Navigator.productSub
slug: Web/API/Navigator/productSub
tags:
  - API
  - DOM
  - Navigator
  - Property
  - Read-only
translation_of: Web/API/Navigator/productSub
---
<div>{{ ApiRef("HTML DOM") }}</div>

<p><code><strong>Navigator.productSub</strong></code> プロパティは読み取り専用で、現在のブラウザーのビルド番号を返します。</p>

<h2 id="Syntax" name="Syntax">構文</h2>

<pre class="syntaxbox"><em>prodSub</em> = window.navigator.productSub</pre>

<ul>
 <li><code>prodSub</code> は、文字列です。</li>
</ul>

<h2 id="Example" name="Example"></h2>

<pre class="brush:js">&lt;script&gt;
function prodsub() {
  var dt = document.getElementById("d").childNodes[0];
  dt.data = window.navigator.productSub;
}
&lt;/script&gt;

&lt;button onclick="prodsub();"&gt;productSub&lt;/button&gt;
// 20010725 などを返します。</pre>

<h2 id="Notes" name="Notes">メモ</h2>

<p>IE では、このプロパティは、 <code>undefined</code> を返します。</p>

<p>Google Chrome および Apple Safari では、このプロパティは常に <code>20030107</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-productsub', 'NavigatorID: productSub')}}</td>
   <td>{{Spec2('HTML WHATWG')}}</td>
   <td>初回定義</td>
  </tr>
 </tbody>
</table>

<h2 id="Browser_compatibility" name="Browser_compatibility">ブラウザーの対応</h2>

<p>{{Compat("api.Navigator.productSub")}}</p>