Can someone tell me where i can find a simple exemple of a "insertBefore" ....

i'm trying to unserstand how to insert a cloneNode to a list and don't understand how to declare the beforeNode i want to insert the node i create.

Is the beforeNode have to be declare as list.firstChild.firstChild.nextSibling

or do i have to set a variables first and then use that variable to declare the beforeNode... I have try everything and it's not working...

Help me please...