var wmlink = document.getElementById('wmlink'); var link = wmlink.getElementsByTagName('a')[0]; link.parentNode.removeChild( link );