HTML API

removeAttribute

Removes the attribute with the specified name from the element.
Throws an exception when the application cannot find a match for the element or the attribute key is different. See HTML live edit for further information.

tilepieces.core.htmlMatch.removeAttribute(element,name);

Parameters

element
DOM element
name
A DOMString specifying the name of the attribute to remove from the element. If the specified attribute does not exist, removeAttribute() returns without generating an error.

Return Value

None.