什么叫表单table?是一个name="table"的form吗?

解决方案 »

  1.   

    <HEAD>
    <SCRIPT>
    function removeElement()
    {
      try
      {
          //The first child of the div is the bold element.
        var oChild=Div1.children(0);
        Div1.removeChild(oChild);
      }
      catch(x)
      {
        alert("You have already removed the bold element. Page will be refreshed when you click OK.")
        document.location.reload();
      }
    }
    </SCRIPT>
    </HEAD>
    <BODY>
    <DIV ID=Div1 onclick="removeElement()">
    Click anywhere in this sentence to remove this <B>Bold</B> word.
    </DIV>
    </BODY>
      

  2.   

    removeChild()方法需要把对象的引用作为参数。
      

  3.   

    试试 Element.outerHTML = "";