JavaScript DOMTokenList : Object
An object containing a list of strings. Used in
Element.classList
and HTMLIFrameElement.sandbox
.
Instance Methods
If value
is not specified, removes token
from the list if was in this
or
adds token
to the list if it was not in this
. If value
is
true
, token
is added to this
if not already there. If value
is
false
, token
is removed from this
.
Example:
RunResults:
Copyright © PUBLIC Contributors