getAttribute method
Returns the value of an attribute given the ID of the attribute.
getAttribute(attributeName )
Parameters
String attributeName
The DOMString giving the name of the attribute.
Returns
String. Returns a DOMString representing the value for the indicated attribute.
Throws
TableException
INVALID_ATTRIBUTE_ERR: Raised if the attributeName is not valid for this object.
这对您有帮助吗?