The cloneNode Method


The cloneNode Method

The cloneNode method copies the current node and returns a new object reference to the copy. You also can pass a Boolean, deep , that you set to true if you want all the node's child nodes to be copied as well; setting it false means only the node itself will be copied . You can see the support for this method in Table 6.13.

Table 6.13. The cloneNode Method

Method

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

cloneNode( deep )

     

x

     

x

x

x

 

Returns: Reference to a node



Inside Javascript
Inside JavaScript
ISBN: 0735712859
EAN: 2147483647
Year: 2005
Pages: 492
Authors: Steve Holzner

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net