title: How do I get JavaScript to delay, and then refresh the page
body: <p>I'd like my JavaScript to, at the end of the function I have created, wait seven seconds, and then refresh my page. If it is important, I have the vital parts of my JavaScript and HTML below...</p>
  
  <p><br>
  Javascript:
  <br></p>
  
  <pre><code>var textfill = function () {
      var node = document.createElement("P");
      var x = document.getElementById('entertext').value;
      var textnode = document.createTextNode("The search results for: '" + x + "' will show up here");
      node.appendChild(textnode);
      document.getElementById("123").appendChild(node);
  }
  </code></pre>
  
  <p>HTML:
  <br></p>
  
  <pre><code> &lt;input type="text" id="entertext"&gt;
   &lt;input type="button" onclick="textfill()" value="Search"&gt;
   &lt;p id="123"&gt;
   &lt;/p&gt;
  </code></pre>