method:createAttribute ( attribute_name );return type:nodecontent:ใช้สร้าง attribute nodeexample:var attrNode = document.createAttribute ( "id" ); attrNode.nodeValue = "bamboo";