I'm trying to remove a tag "a" within a specific div.
How can I access to the tag?
<script>
    window.onload = function myFunction() { 
        var elem = document.getElementById("divname");
      var a_tag_elem = elem.getElementsByTagName("a");
      a_tag_elem.remove();    
} 
</script>
 
     
    