This browser isn't using the script. Please use the monolithic document instead.
 DOM-1  «  < § >   Netscape CodeStock 1999
   How to Destroy a Node

If the object has an ID, it's not necessary to navigate.

function destroyView() {
 objecttodestroy =
document.getElementById("viewtable")
 body = getBody()
 body.removeChild(objecttodestroy)
 // Now destroy the buttons.
 objecttodestroy =
document.getElementById("whosaid")
 body.removeChild(objecttodestroy)
 objecttodestroy =
document.getElementById("goaway")
 body.removeChild(objecttodestroy)
}

Copyright © 1999 General Picture ™. Permission granted to reproduce in whole or part without charge as long as http://www.generalpicture.com is cited as source.