DOMTokenList : Object
An object containing a list of strings. Used in
Element.classList
and HTMLIFrameElement.sandbox
.Instance Methods
If oldToken
is present in this
, removes oldToken
, adds newToken
, and returns true
. Otherwise, makes no changes and returns false
.
Example:
RunResults:
Copyright © JavaScripture Contributors