org.w3c.dom.Document.createAttribute
method
public createAttribute(name as String) as Attr throws DOMException
Description

Creates an attribute node.

Parameters
  • name Attribute qualified name.
Returns

New attribute node.

Throws
  • DOMException if the name is invalid.
Example
attr = document.createAttribute("id")