Hi,

in my html page i have for example the following thing :

...

<div class='test' id='id_test'>
this is a simple test
</div>

Now when this html page is loaded, i would to have a js script which include this div into another one. In the way that for browser, it will look like that :

<div class='prog_added_div'>
<div class='test' id='id_test'>
this is a simple test
</div>
</div>

I do not understand how appendchild can insert such element on both side ?
I mean before the beginning of the div ==> <div class='prog_added_div'> and after the previous div ==> </div>

thx.

M.