HTML DOM Document applets 属性
定义和用法
不推荐使用 applet 属性。请不要使用它。
applet 属性在所有新浏览器中返回空的 HTMLCollection。
HTML5 不支持 <applet> 元素。
备选方案:
获取文档中 <applet> 元素的数量:
let num = document.getElementsByTagName("applet").length;
另请参阅:
语法
document.applets
返回值
| 类型 | 描述 |
|---|---|
| 对象 | 包含文档中所有 <applet> 元素的 HTMLCollection 对象。 |