setAttribute(name, value)
|
|
Parameters
|
Stringname
The name of the attribute to create or alter.
Stringvalue
Value to set in string form.
|
Returns
|
void
|
Throws
|
DOMException
INVALID_CHARACTER_ERR: Raised if the specified name contains an illegal character.
NO_MODIFICATION_ALLOWED_ERR: Raised if this node is readonly.
|