title: Delete element with javascript by onload
body: <p>helo here is a code:</p>
  
  <pre><code>&lt;a id="sdffg" href="/allgemeinen/me-libe-love-y/"&gt;&lt;p class="erfg" class="quotes"&gt;
  bla bla bla
  &lt;/p&gt;&lt;/a&gt;
  </code></pre>
  
  <p>i want to delete <code>a</code> element
  js code for it:</p>
  
  <pre><code>    &lt;script&gt;
      window.onload=function(){
  
  var btn = document.getElementById('sdffg');
  btn.onclick = function () {
      document.getElementById('txt').remove();
      this.remove();
  };
  
  }
  
      &lt;/script&gt;
  </code></pre>
  
  <p>but it is not working, page: </p>
  
  <pre><code>https://geburtstagsplanet.com/allgemeinen/me-libe-love-y/
  </code></pre>
  
  <p>my js code is really in source code but it is not working:  </p>
  
  <pre><code>view-source:https://geburtstagsplanet.com/allgemeinen/me-libe-love-y/
  </code></pre>