The applyElement Method


The applyElement Method

The applyElement method enables you to create parent or child elements in the Internet Explorer. You can see the support for this method in Table 6.8.

Table 6.8. The applyElement Method

Method

NS2

NS3

NS4

NS6

IE3a

IE3b

IE4

IE5

IE5.5

IE6

applyElement ( element [, type ] )

             

x

x

x

 

No return value

You first create a new element with the document object createElement method and pass that element to this method, along with the type argument, which can be either of these strings:

  • "outside" (the default). The indicated element becomes a parent of the current element.

  • "inside" . The indicated element becomes a child of the current elementbut contains all children of the current element.



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