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:
© 2014 Microsoft