HTML API

replaceWith

Replace an element with another.
Throws an exception when the application cannot find a match for the element. See HTML live edit for further information.

tilepieces.core.htmlMatch.replaceWith(element,newElement);

Parameters

element
A DOM element to be deleted from the document
newElement
A new DOM element which will be cloned and take the place of the element.

Return Value

None.