Use
function LoadResponse(response,control)
{
var container = document.getElementById(control);
try
{
while(container.firstChild)
container.removeChild(container.firstChild);
var t = document.createElement('div');
t.innerHTML = response;
container.appendChild(t);
}
catch(ex)
{
container.innerHTML = response;
}
}
Now call
LoadResponse('', divid)
It will remove the content totally.