// Personal website of Chris Smith

JavaScript » Remove all child elements

while (target.firstChild) {
    target.removeChild(target.lastChild)
}