TOC PREV NEXT INDEX

domref



deleteContents


Removes the contents of a Range from the document.

Syntax

range.deleteContents()
 

Parameters

None.

Example

range = document.createRange();
 
range.selectNode(
 
  document.getElementsByTagName("div").item(0));
 
range.deleteContents();
 

Notes

Unlike extractContents, this method does not return a documentFragment containing the deleted content.

Specification

deleteContents


Netscape Communications
http://developer.netscape.com
TOC PREV NEXT INDEX