JavaScript DHTML/Node Operation/insertBefore
"insertBefore()" Example
<source lang="html4strict">
<html> <body> <script language="JavaScript"> function function1() {
var myElement = document.createElement("");document.all.myDiv.insertBefore(myElement);
} </script> <button id="myButton" onclick="function1();">Insert element</button>
www.wbex.ru
</body> </html>
</source>