Return to Snippet

Revision: 4812
at January 22, 2008 00:03 by ecavazos


Initial Code
function removeChildrenFromNode(node) {
    if(node.hasChildNodes()) {
        while(node.childNodes.length >= 1 ) {
            node.removeChild(node.firstChild);       
        } 
    }
}

Initial URL

                                

Initial Description

                                

Initial Title
Remove Children From Node

Initial Tags

                                

Initial Language
JavaScript