HTML DOM Document applets attribute
- Previous Page anchors
- Next Page baseURI
- Go to the Previous Level HTML DOM Documents
Definition and Usage
Not recommended for use applet
attribute. Please do not use it.
applet
The attribute returns an empty HTMLCollection in all new browsers.
HTML5 does not support the <applet> element.
Alternative solution:
Get the number of <applet> elements in the document:
let num = document.getElementsByTagName("applet").length;
See also:
Example
Number of <applet> elements in the document:
let num = document.applets.length;
Syntax
document.applets
Return Value
Type | Description |
---|---|
Object | HTMLCollection object that contains all <applet> elements in the document. |
- Previous Page anchors
- Next Page baseURI
- Go to the Previous Level HTML DOM Documents