contains method
Returns true if the token is present; false otherwise.
![]() |
Syntax
var retVal = DOMTokenList.contains(token);Parameters
- token [in]
-
Type: DOMString
- retVal [out, retval]
-
Type: boolean
Remarks
Throws a SyntaxError exception if token is empty.
Throws an InvalidCharacterError exception if token contains any spaces.
See also
Show:
