November 2001
Intermediate to advanced
936 pages
68h 43m
English
Document.createAttribute( ) — create a new Attr node
DOM Level 1 Core
Attr createAttribute(String name)
throws DOMException;name
The name for the newly created attribute.
A newly created Attr node with its nodeName
property set to name.
This method throws a DOMException with a code of
INVALID_CHARACTER_ERR if
name contains an illegal character.