Programmer's Guide > Interfaces > TableObject interface > setAttribute method
  
setAttribute method
Set an attribute.
setAttribute(attributeName value)
Parameters
StringattributeName The DOMString giving the name of the attribute. Stringvalue
The new value for the attribute.
Returns
void
Throws
TableException
INVALID_ATTRIBUTE_ERR: Raised if the attributeName is not valid for this object or the value is invalid for the attribute.