Okay, say I have a header:
<h1 class="header" id="myHeader" onclick="myfunction()">header</h1>
that calls this function:
function myFunction()
{
var x=document.getElementById("remove_div");
x.parentNode.removeChild(x);
}
Is there a way to change the header to this:
<h1 class="header" id="myHeader" onclick="myfunction2()">header</h1>
after it's been clicked?
Thanks guys, I only just learnt javascript so bare with me
