---
title: Document.applets
slug: Web/API/Document/applets
tags:
  - API
  - Deprecated
  - Document
  - HTML DOM
  - Property
  - Reference
  - applets
  - プロパティ
translation_of: Web/API/Document/applets
---
<div>{{APIRef("DOM")}}{{deprecated_header}}</div>

<p>{{domxref("Document")}} インターフェイスの <strong><code>applets</code></strong> プロパティは、文書内のアプレットのリストを返します。</p>

<div class="note">
<p><strong>メモ</strong>: {{htmlelement("applet")}} 要素は <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=1279218">Gecko 56</a> および <a href="https://bugs.chromium.org/p/chromium/issues/detail?id=470301">2015年後期の Chrome</a> から削除されました。それ以来、これらのブラウザーで <code>document.applets</code> を呼び出しても空の {{domxref("HTMLCollection")}} しか返しません。 <a href="https://bugs.webkit.org/show_bug.cgi?id=157926">WebKit</a> および <a href="https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/11946645/">Edge</a> でも削除が検討されています。</p>
</div>

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

<pre class="syntaxbox">var <var>nodeList</var> = <var>document</var>.applets;
</pre>

<h3 id="Value" name="Value">値</h3>

<p>{{domxref("HTMLCollection")}}</p>

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

<pre class="brush: js">// 2番目のアプレットが取得したいアプレットであると分かっている場合
my_java_app = document.applets[1];
</pre>

<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-document-applets', 'Document.applets')}}</td>
   <td>{{ Spec2('HTML WHATWG') }}</td>
   <td>廃止</td>
  </tr>
  <tr>
   <td>{{SpecName('DOM2 HTML', 'html.html#ID-85113862', 'Document.applets')}}</td>
   <td>{{ Spec2('DOM2 Events') }}</td>
   <td>初回定義</td>
  </tr>
 </tbody>
</table>

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

<p>{{Compat("api.Document.applets")}}</p>