Section 25.59. Document.createAttribute( ): create a new Attr node


25.59. Document.createAttribute( ): create a new Attr node

DOM Level 1 Core:

25.59.1. Synopsis

 Attr createAttribute(String name)     tHRows DOMException; 

25.59.1.1. Arguments

name

The name for the newly created attribute.

25.59.1.2. Returns

A newly created Attr node with its nodeName property set to name.

25.59.1.3. Throws

This method throws a DOMException with a code of INVALID_CHARACTER_ERR if name contains an illegal character.

25.59.2. See Also

Attr, Element.setAttribute( ), Element.setAttributeNode( )




JavaScript. The Definitive Guide
JavaScript: The Definitive Guide
ISBN: 0596101996
EAN: 2147483647
Year: 2004
Pages: 767

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net