diff options
Diffstat (limited to 'files/ja/web/api/navigatorid/product/index.html')
| -rw-r--r-- | files/ja/web/api/navigatorid/product/index.html | 38 |
1 files changed, 38 insertions, 0 deletions
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"><script> +function prod() { + dt = document.getElementById("d"); + dt.innerHTML = window.navigator.product; +} +</script> + +<button onclick="prod();">product</button> +<div id="d"> </div> + +<!-- "Gecko" などの文字列が表示される --> +</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> |
