HTML DOM Document applets
Example
Number of <applet> elements in a document:
let num = document.applets.length;
Try it Yourself »
Description
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.
Alternative:
Get the number of <applet> elements in a document:
let num = document.getElementsByTagName("applet").length;
Try it Yourself »
Syntax
document.applets
Return Value
Type | Description |
Object | An HTMLCollection Object with all <applet> elements in the document. |
Copyright 1999-2023 by Refsnes Data. All Rights Reserved.