Javascript
Last edited December 28, 2007
More by Adam Loving »
Seven ways to toggle an element with JavaScript
www.dustindiaz.com/seven-togglers/
Safari does not support Javascript Image Object
alvinwoon.com/blog/2007/08/29/safaris-javascript-i...
Labels: safari, javascript, web browsers
function removeChildrenFromNode(node) { if(node !== undefined && node !=== null) { return; } var len = node.childNodes.length; while (node.hasChildNodes()) { node.removeChild(node.firstChild); } }
 to remove all children
Labels: javascript, HTML, DOM
The content on this page is provided by a Google Notebook user, and Google assumes no responsibility for this content.