Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

contains method

Returns true if the token is present; false otherwise.

Internet Explorer 10

 

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

DOMTokenList

 

 

Show:
© 2015 Microsoft