diff options
Diffstat (limited to 'files/ja/orphaned/web/api/navigatorid/appversion/index.html')
-rw-r--r-- | files/ja/orphaned/web/api/navigatorid/appversion/index.html | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/files/ja/orphaned/web/api/navigatorid/appversion/index.html b/files/ja/orphaned/web/api/navigatorid/appversion/index.html new file mode 100644 index 0000000000..48436c71ca --- /dev/null +++ b/files/ja/orphaned/web/api/navigatorid/appversion/index.html @@ -0,0 +1,65 @@ +--- +title: NavigatorID.appVersion +slug: orphaned/Web/API/NavigatorID/appVersion +tags: + - API + - Deprecated + - NavigatorID + - Property + - Reference + - appVersion +translation_of: Web/API/NavigatorID/appVersion +original_slug: Web/API/NavigatorID/appVersion +--- +<p>{{APIRef("HTML DOM")}} {{Deprecated_Header}}</p> + +<p>"<code>4.0</code>" またはそのブラウザーのバージョン情報を表す文字列のどちらかを返します。</p> + +<div class="notecard note"> + <h4>注</h4> + <p>このプロパティがブラウザーの正しいバージョンを返すことを期待しないでください。</p> +</div> + +<h2 id="Syntax">構文</h2> + +<pre class="brush: js">window.navigator.appVersion +</pre> + +<h3 id="Returned_value">値</h3> + +<p>"<code>4.0</code>" またはそのブラウザーのバージョン情報を表す文字列のどちらかです。</p> + +<h2 id="Example">例</h2> + +<pre class="brush: js">alert("このブラウザーのバージョンは " + navigator.appVersion + " と報告されています。"); +</pre> + +<h2 id="Notes">注</h2> + +<p><code>window.navigator.userAgent</code> プロパティもバージョン番号を含んでいる場合がありますが ("<code>Mozilla/5.0 (Windows; U; Win98; en-US; rv:0.9.2) Gecko/20010725 Netscape 6/6.1</code>" など)、ユーザーエージェント文字列を変更したり、他のブラウザー、プラットフォーム、ユーザーエージェントに「偽装」したり、ブラウザーベンダー自身がこれらのプロパティに無頓着であったりすることを意識しておいてください。</p> + +<p><code>window.navigator.appVersion</code>, <code>window.navigator.appName</code>, <code>window.navigator.userAgent</code> の各プロパティは、「ブラウザー推定」 (browser sniffing) コード、すなわち使用しているブラウザーを検出し、それに従ってページを調整しようとするスクリプトで使われてきました。これにより、一部のウェブサイトから拒否されないようにするために、ブラウザーがこれらのプロパティで偽の情報を返さなければならないという現在の状況が発生したのです。</p> + +<h2 id="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-appversion', + 'NavigatorID.appVersion')}}</td> + <td>{{Spec2('HTML WHATWG')}}</td> + <td>初回定義</td> + </tr> + </tbody> +</table> + +<h2 id="Browser_compatibility">ブラウザーの互換性</h2> + +<p>{{Compat("api.NavigatorID.appVersion")}}</p> |