Number of <applet> elements in a document:
let num = document.applets.length;
Try it Yourself »
The applets property is deprecated. Do NOT use it.
The applets property returns an empty HTMLCollection in all new browsers.
The <applet> element is not supported in HTML5.
Get the number of <applet> elements in a document:
let num = document.getElementsByTagName("applet").length;
Try it Yourself »
document.applets
Type | Description |
Object | An HTMLCollection Object with all <applet> elements in the document. |
截取页面反馈部分,让我们更快修复内容!也可以直接跳过填写反馈内容!