--- title: Document.applets slug: Web/API/Document/applets tags: - API - Document - HTML DOM - Апплеты - Документ translation_of: Web/API/Document/applets ---

{{APIRef("DOM")}}

applets возвращает массив апплетов, находящихся в документе.

Note: The {{htmlelement("applet")}} element was removed in Gecko 56 and Chrome in late 2015. Since then, calling document.applets in those browsers always returns an empty {{domxref("HTMLCollection")}}. Removal is being considered in WebKitand Edge.

Синтаксис

nodeList = document.applets

 

Значение

{{domxref("HTMLCollection")}}.

 

Пример

// Когда вы точно знаете, что вам нужен 2й апплет
my_java_app = document.applets[1];

Спецификации

{{Specifications}}

Браузерная поддержка

{{Compat}}