PoppapumpJ
Programmer
I am looking to completely remove an element from the page and memory.
The example I have shown ACTS like what I want. When you click the button, the table goes away. However it is just being hiddin. Does anyone know how to remove it completely from the DOM?
Thanks
[tt]
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT>
function DeleteThing(){
document.all.testTable.style.display = 'none';
}
</SCRIPT>
</HEAD>
<BODY>
<table id="testTable" border=5 cellpadding=0 cellspacing=0 >
<TR><TD>test</TD></TR>
</Table>
<INPUT type="button" onclick="javascript: DeleteThing();" value="Button" id=button2 name=button2>
</BODY>
</HTML>
[/tt]
The example I have shown ACTS like what I want. When you click the button, the table goes away. However it is just being hiddin. Does anyone know how to remove it completely from the DOM?
Thanks
[tt]
<HTML>
<HEAD>
<META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
<TITLE></TITLE>
<SCRIPT>
function DeleteThing(){
document.all.testTable.style.display = 'none';
}
</SCRIPT>
</HEAD>
<BODY>
<table id="testTable" border=5 cellpadding=0 cellspacing=0 >
<TR><TD>test</TD></TR>
</Table>
<INPUT type="button" onclick="javascript: DeleteThing();" value="Button" id=button2 name=button2>
</BODY>
</HTML>
[/tt]