I want to replace the text of an html element that contains a link, to which I added the corresponding ID:
This code works (without the link):
<script>
var titleChange = document.getElementById("navceth").innerHTML = "<a>CETH</a>";
</script>
But when I incorporate the link inside the innerHTML to replace, it does not work.
Any suggestions?