removeChild - null variable
Here's the basic code:
The #MSG_cont1 div **IS** removed successfully, and that element ID does exist before removal (I checked it before and after, using the DOM inspector). Nonetheless, I get a "cont1 is null" message on the Error Console, after running this code. Why is that? By the way, the parentNode is the <BODY> element.
var cont1 = document.getElementById('MSG_cont1');