Javascript Reference
Categories: document

javascript document createAttribute( )

@May 11, 2009, 10:25 a.m.
createAttribute( ) Firefox/Netscape/NN 6 IE 5(Mac)/6(Win) Chrome/Safari/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.

Under moderation.
ascendp2tekz - 2016-05-11
Under moderation.
ascendi8pvz0 - 2016-05-09
Under moderation.
ascendgbww6j - 2016-05-01

Powered by Linode.