contains
Collapse the table of content
Expand the table of content

contains method

Returns true if the token is present; false otherwise.

Syntax

var retVal = DOMTokenList.contains(token);

Parameters

token [in]

Type: DOMString

Remarks

Throws a SyntaxError exception if token is empty. Throws an InvalidCharacterError exception if token contains any spaces.

See also

DOMTokenList

 

 

Show:
© 2016 Microsoft