Is there any way to remove an element from a page? I have an IFRAME which calls a PHP script that changes a MySQL table to change the status of a record from open to closed. However, I need to remove a div from the parent page. I've been trying a simple one that says:
But it doesn't work. Can anybody help me out? I don't want to just make the div hidden, I want to remove it from the page so that it doesn't take up room
Code:
function removeMe()
{
var getOut = document.getElementById("id1");
getOut.removeElement;
}