insertBefore
或者
http://zhan.zhmy.com/archives/2006/98970.html
/

解决方案 »

  1.   

    <html>
    <head>
    </head><script type='text/javascript'>
    function Insert(){
    var oNewBR = document.createElement("br");
    var oOldLB = document.getElementById('lab');
    document.body.insertBefore(oNewBR,oOldLB);
    }</script>
    <body>
    <label id="lab">插入</label>
    <input type='button' value='插入' onclick='Insert()'>
    </body>
    </html>