'setAttributeNode()' Syntax, Parameters and Note : setAttributeNode « Javascript Methods « JavaScript Reference

'setAttributeNode()' Syntax, Parameters and Note

Note:

This method adds an attribute node to the element.
    
Syntax:
    
document.getElementById("elementID").setAttributeNode(param1)
document.all.elementID.setAttributeNode(param1) // IE only

Parameters:
    param1   Required; the name of the attribute to be added.

    

      
      








Related examples in the same category

1.'setAttributeNode()' Example
2.'setAttributeNode()' is applied to