Source Code of: removechildrenrecursively.js
Date Last Modified: May 02, 2009 - 01:59:25 AM
Size: 183 Bytes  |  8 lines  |  183 characters
function removeChildrenRecursively(node)
{
    if (!node) return;
    while (node.hasChildNodes()) {
        removeChildrenRecursively(node.firstChild);
        node.removeChild(node.firstChild);
    }
}

A Derivative Work of: PHP Source Code Utility - Version 1.0.0 Copyright © 0php.com 2002.