DOMTokenList.Replace

DOMTokenList.Replace method

Replaces an existing token with a new token. Does nothing if the first token doesn’t exist.

public bool Replace(string token, string newToken)
ParameterTypeDescription
tokenStringThe token you want to replace.
newTokenStringThe token you want to replace the old token with.

Return Value

Boolean true if the token was found and replaced, false otherwise.

See Also