javascript document createAttribute( )

createAttribute( ) NN 6 IE 5(Mac)/6(Win) DOM 1

createAttribute("attributeName")

 

Generates in memory an instance of an attribute node (Attr object). A typical sequence is to create the attribute, assign a value to it via its nodeValue property, and then insert the Attr node into an element's attribute list via the element's setAttributeNode( ) method.

 
Parameters
 
attributeName

A case-sensitive string of the attribute's name.

 
Returned Value

Attr node object reference.


585,Nickname,Homepage or email,Comments here,Add comment