HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

add

Description

The add of DOMTokenList for JS adds all arguments passed, except those already present.

Throws a "SyntaxError" DOMException if one of the arguments is the empty string.

Throws an "InvalidCharacterError" DOMException if one of the arguments contains any ASCII whitespace.

Syntax

tokenlist.add(tokens…)

Parameters

tokens

A list of strings.

Examples

1 · single

2 · multiple

3 · present