Javascript Reference - HTML DOM renameNode() Method








The renameNode() method renames nodes of type Element and Attr.

Browser Support

renameNode No No No No No

Syntax

document.renameNode(node, namespaceURI, nodename)

Parameters

Parameter Type Description
node Node object Required. The node object to rename
namespaceURI String Required, namespace URI of the node
nodename String Required, the new nodename




Return Value

Type Description
Node object The renamed node