javascript Range surroundContents( )

surroundContents( )NN 7 IE n/a 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.


1645,Nickname,Homepage or email,Comments here,Add comment