<HEAD>
<SCRIPT>
function removeElement()
{ //The first child of the div is the bold element.
var oChild=Div1.children(0);
Div1.removeChild(oChild);}
</SCRIPT>
</HEAD>
<BODY>
<DIV ID='Div1' >
<input type="text" value="aa"/></DIV>
<input type="button" onclick="removeElement()" value="删除"/>
</BODY>
<SCRIPT>
function removeElement()
{ //The first child of the div is the bold element.
var oChild=Div1.children(0);
Div1.removeChild(oChild);}
</SCRIPT>
</HEAD>
<BODY>
<DIV ID='Div1' >
<input type="text" value="aa"/></DIV>
<input type="button" onclick="removeElement()" value="删除"/>
</BODY>
<SCRIPT>
function removeElement()
{ //The first child of the div is the bold element.
var oChild=form1.children(0);
form1.removeChild(oChild);}
</SCRIPT>
</HEAD>
<BODY><FORM METHOD=POST ACTION="" id="form1" id="form1">
<input type="text" value="aa"/><input type="button" onclick="removeElement()" value="删除"/>
</FORM></BODY>
<HEAD>
<SCRIPT>
function removeElement()
{//The first child of the div is the bold element.
var oChild=form1.children('txt1');
if (oChild != null)
{
form1.removeChild(oChild);
}}
</SCRIPT>
</HEAD>
<BODY><FORM METHOD=POST ACTION="" id="form1" id="form1">
<input type="text" value="aa" id="txt1"/><input type="button" onclick="removeElement()" value="删除"/>
</FORM></BODY>
<input type="button" onclick="this.removeNode(true)" value="删除"/>
</body>
p.removeChild(p);
var p=document.all.file
p.parentNode.removeChild(p);