Javascript Reference
Categories: Range

javascript Range surroundContents( )

@March 15, 2008, 1:22 a.m.
surroundContents( )Firefox/Netscape/NN 7 IE n/a Chrome/Safari/DOM 2  

surroundContents(parentNodeReference)

  

Encapsulates the current range with a new container, usually a new element node created via the document.createElement( ) method. End points of the current range should have the same parent container prior to applying this method.

 
Parameters
 
  • Reference to a node that becomes the new containing parent for the range.
 
Returned Value

None.


Powered by Linode.