I'm trying to make the input values in one of my html pages to show up in another one of my html pages ?
My code is as follows in the first page.
  <div class="resume-input">
    <h3>SUMMARY: </h3>
    <textarea name="Summary" placeholder="If its more than 100 words no one is going to read it" id="textarea" cols="30" rows="10"></textarea>
  </div>
And this is my html code in the page where the input values should show
  <div class="col-md-12">
    <center>
      <h1><div id="summary"></div></h1>
    </center>
  </div>
my JS looks like this
document.querySelector('#button1').addEventListener('click', function(){
  var summary = document.querySelector('#textarea').value;
  var summaryInput = document.querySelector('#summary');
  summaryInput.textContent = summary
  window.location = 'results.html'
})
the window.location = 'results.html' allows the button to redirect the input values to another page with the input values from the previous page.
 
    