remove

The remove JS DOMTokenList removes arguments passed, if they are 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.remove(tokens…)

Parameters

tokens

A list of strings.

Examples

1 · single

2 · multiple

3 · not present

add

contains

item

length

replace

supports

toggle

value

Web Hypertext Application Technology Working Group (WHATWG)

Home Menu