getAttribute
The getAttribute method returns the value for the specified attribute key.
Syntax
Parameters
| Parameter | Type | Description |
|---|---|---|
| key> | String | The name of the attribute. |
Returns
The value for the specified attribute key, or null if there was none.