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

'add()' Syntax, Parameters and Note

Note:

Adds an element to the collection.
    
Syntax:
    
document.all.selectID.add(param1, param2)
collectionName.add(param1, param2)


Parameters:
    param1   Required; the element to add.
    param2   Optional; the index position for the added element.

    

      
      








Related examples in the same category

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