Prototype This page is part of the Prototype JavaScript framework documentation.
Overview | (...)

Element.remove removes the element from the DOM tree.

Syntax


  Element.remove( element );

Example


  <a href="#" onclick="Element.remove('desc'); return false;">Remove description</a>
  <p id="desc">An adept sycophant hides in his hole.</p>

creates:

Remove description

An adept sycophant hides in his hole.