我們的志工尚未將本文翻譯為 正體中文 (繁體) 版本。加入我們,幫忙翻譯!
您也可以閱讀本文的 English (US) 版本。

Deprecated
This feature has been removed from the Web standards. Though some browsers may still support it, it is in the process of being dropped. Avoid using it and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The applets property of the Document interface returns a list of the applets within a document.

Note: The <applet> element was removed in Gecko 56 and Chrome in late 2015. Since then, calling document.applets in those browsers always returns an empty HTMLCollection. Removal is being considered in WebKit and Edge.

Syntax

nodeList = document.applets 

Value

An HTMLCollection.

Example

// When you know the second applet is the one you want
my_java_app = document.applets[1];

Specifications

Specification Status Comment
HTML Living Standard
The definition of 'Document.applets' in that specification.
Living Standard Obsoleted.
Document Object Model (DOM) Level 2 HTML Specification
The definition of 'Document.applets' in that specification.
Obsolete Initial definition.

Browser compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support Yes ? Yes ? ? ?
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support Yes Yes ? Yes ? ? ?

文件標籤與貢獻者

最近更新: chrisdavidmills,