title: The event.target.value is not insert the userinput into a variable
body: <p>I have a html form and would like to use an eventlistener every click on submit button and insert the textarea and textinput to an alert.</p>
  
  <p>the fuction of event.target.value is not working for me and the userinput is not set to a variable.</p>
  
  <p>why eventa.target.value is not working? and how can I use the userinput?</p>
  
  <p>Code:</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var myinput = document.getElementById('myinput');
  var mytext = document.getElementById('mytext').target.value;
  var myform = document.getElementById('myform');
  
  myform.addEventListener("change", function(event) {
    alert(mytext);
  })
  
  myform.addEventListener("click", function(event) {
    alert(mytext);
  })</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>input[type="text"] {
    width: 200px;
    height: 20px;
  }
  
  input[type="submit"] {
    width: 100px;
    height: 50px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;form action="" id="myform"&gt;
    &lt;input type="text" id="myinput" /&gt;
    &lt;br/&gt;
    &lt;textarea id="mytext" cols="30" rows="10"&gt;&lt;/textarea&gt;
    &lt;input type="submit" id='submit' /&gt;
  &lt;/form&gt;</code></pre>
  </div>
  </div>
  </p>