HTML DOM Document applets attribute

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;

Try it yourself

See also:

HTML <applet> Tag

HTML <object> Tag

HTML DOM Object Object

Example

Number of <applet> elements in the document:

let num = document.applets.length;

Try it yourself

Syntax

document.applets

Return Value

Type Description
Object HTMLCollection object that contains all <applet> elements in the document.