1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
<html> <head> <script> function init() { var form1 = document.getElementById("form1"); var tr1 = document.getElementById("tr1"); tr1.appendChild(form1); tr1.removeChild(form1); } window.addEventListener("load", init); </script> </head> <body> <table><tr id="tr1"><td></td></tr></table> <form id="form1"><span style="float:left"></span></form> </body> </html>