title: How to make a linethrough, or a strike on a word on click using Javascript?
body: <p>I'm using the following JS code on a separate file to make a list by entering words in a text field and pressing a button:</p>
  
  <pre><code>function newElement() {
  
    var myInput = document.getElementById("myInput").value
    var listNode = document.getElementById('myUL'),
    var liNode = document.createElement('LI'),
    var txtNode = document.createTextNode(myInput);
  
    liNode.appendChild(txtNode);
    listNode.appendChild(liNode);
  
  }
  </code></pre>
  
  <p>Everything works fine but I need to click every new word and change it by let's say, adding a strike on this word. What I'm trying to make is a checklist.</p>